Skip to content

Commit

Permalink
fix(sagas): Event cleaner invalid SQL (#4414)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchello2000 committed Mar 12, 2020
1 parent 6e4be2b commit c3c33a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SqlEventCleanupAgent(

registry.timer(timingId).record {
withPool(ConnectionPools.EVENTS.value) {
val rs = jooq.select(field("aggregate_type"), field("aggregateId"))
val rs = jooq.select(field("aggregate_type"), field("aggregate_id"))
.from(table("event_aggregates"))
.where(timestampDiff(field("last_change_timestamp", Timestamp::class.java), currentTimestamp())
.greaterThan(DayToSecond.valueOf(duration)))
Expand Down

0 comments on commit c3c33a9

Please sign in to comment.