loot tracker service: correct kill expiry query to use idx_time propertly

This commit is contained in:
Adam
2019-01-12 11:35:28 -05:00
parent 67e397a2b0
commit f99775aaad

View File

@@ -188,7 +188,7 @@ public class LootTrackerService
{
try (Connection con = sql2o.open())
{
con.createQuery("delete from kills where time + interval 30 day < current_timestamp()")
con.createQuery("delete from kills where time < current_timestamp() - interval 30 day")
.executeUpdate();
}
}