Skip to content

Commit

Permalink
fix wrong param passed to query
Browse files Browse the repository at this point in the history
  • Loading branch information
gturi committed May 8, 2022
1 parent 8beb2e4 commit 7af8165
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class CommandCacheRepository : PanacheRepository<CommandCacheEntity> {
fun deleteElapsedChatUserCommand(minutes: Int) {
val currentTimeNow = Calendar.getInstance()
currentTimeNow.add(Calendar.MINUTE, -minutes)
delete("creationDate <= ?1", minutes)
delete("creationDate <= ?1", currentTimeNow.time)
}
}

0 comments on commit 7af8165

Please sign in to comment.