mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-25 01:44:12 +00:00
Fix bad database update
This commit is contained in:
parent
863e043650
commit
d394626f6d
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ Class StaleDataCleaner
|
|||
Using t = db.BeginTransaction()
|
||||
Using c = db.CreateCommand()
|
||||
' Delete data for guilds not seen in 2 weeks
|
||||
c.CommandText = $"delete from {GuildUserSettings.BackingTable} where (now() - interval '14 days') > last_seen"
|
||||
c.CommandText = $"delete from {GuildStateInformation.BackingTable} where (now() - interval '28 days') > last_seen"
|
||||
Dim r = c.ExecuteNonQuery()
|
||||
If r <> 0 Then Log($"Removed {r} stale guild(s).")
|
||||
End Using
|
||||
|
|
Loading…
Reference in a new issue