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