From bc2fff83ffc79a5c905efec615781fad91c34de8 Mon Sep 17 00:00:00 2001 From: Wayne Carter Date: Wed, 18 Dec 2024 15:07:24 +1300 Subject: [PATCH] BE Manager dependabot recommendations --- packages/Manager/build.gradle.kts | 2 +- .../src/main/kotlin/nz/govt/eop/rainfall/RainfallQueries.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/Manager/build.gradle.kts b/packages/Manager/build.gradle.kts index a7e80931..82fcfeac 100644 --- a/packages/Manager/build.gradle.kts +++ b/packages/Manager/build.gradle.kts @@ -9,7 +9,7 @@ import org.springframework.jdbc.datasource.SingleConnectionDataSource import org.springframework.jdbc.datasource.init.ScriptUtils.* plugins { - id("org.springframework.boot") version "3.3.5" + id("org.springframework.boot") version "3.4.0" id("io.spring.dependency-management") version "1.1.6" id("com.diffplug.spotless") version "6.25.0" id("org.flywaydb.flyway") version "10.21.0" diff --git a/packages/Manager/src/main/kotlin/nz/govt/eop/rainfall/RainfallQueries.kt b/packages/Manager/src/main/kotlin/nz/govt/eop/rainfall/RainfallQueries.kt index ef37ef6c..5325f21c 100644 --- a/packages/Manager/src/main/kotlin/nz/govt/eop/rainfall/RainfallQueries.kt +++ b/packages/Manager/src/main/kotlin/nz/govt/eop/rainfall/RainfallQueries.kt @@ -22,7 +22,7 @@ class RainfallQueries( @Autowired val jdbcTemplate: JdbcTemplate ) { - fun rainfall(councilId: Int, from: Instant, to: Instant): String { + fun rainfall(councilId: Int, from: Instant, to: Instant): String? { // val fromUTC = from.atOffset(ZoneOffset.UTC) val toUTC = to.atOffset(ZoneOffset.UTC) @@ -65,7 +65,7 @@ class RainfallQueries( return buildFeatureCollection(context, innerQuery) } - fun rainfallAccumulation(from: Instant, to: Instant): String { + fun rainfallAccumulation(from: Instant, to: Instant): String? { return jdbcTemplate.queryForObject( """ WITH times AS (