From 79416ecb6ecf0a59af767868f40c93e3bea8c63a Mon Sep 17 00:00:00 2001 From: Sriraam AS Date: Thu, 2 Mar 2023 18:22:31 -0500 Subject: [PATCH] use .next() instead of first() in another instance --- .../src/main/scala/com/lucidchart/piezo/JobHistoryModel.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/src/main/scala/com/lucidchart/piezo/JobHistoryModel.scala b/worker/src/main/scala/com/lucidchart/piezo/JobHistoryModel.scala index 28acb39..59af2a1 100644 --- a/worker/src/main/scala/com/lucidchart/piezo/JobHistoryModel.scala +++ b/worker/src/main/scala/com/lucidchart/piezo/JobHistoryModel.scala @@ -123,7 +123,7 @@ class JobHistoryModel(props: Properties) { prepared.setString(1, triggerName) prepared.setString(2, triggerGroup) val rs = prepared.executeQuery() - if (rs.first()) { + if (rs.next()) { Some(parseJob(rs)) } else { None