Skip to content

Commit 1680f2b

Browse files
committed
add filter for jdbc state update
1 parent 0bdc1dd commit 1680f2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jdbc/src/main/scala/app/softnetwork/persistence/jdbc/query/JdbcStateProvider.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ trait JdbcStateProvider[T <: Timestamped]
257257
state: String
258258
): Boolean = {
259259
val action = states
260+
.filter(_.uuid === uuid)
260261
.update(
261262
(uuid, lastUpdated, deleted, state)
262263
)

0 commit comments

Comments
 (0)