more GuildTresure optimisation

This commit is contained in:
wish
2023-10-24 21:21:21 +11:00
parent e688fdf3c5
commit 2f8d09b09e
5 changed files with 99 additions and 72 deletions

View File

@@ -126,6 +126,7 @@ func main() {
// Clear stale data
_ = db.MustExec("DELETE FROM sign_sessions")
_ = db.MustExec("DELETE FROM servers")
_ = db.MustExec(`UPDATE guild_characters SET treasure_hunt=NULL`)
// Clean the DB if the option is on.
if config.DevMode && config.DevModeOptions.CleanDB {