default netcafe rewards and maintenance

This commit is contained in:
wish
2022-08-13 18:22:56 +10:00
parent 0ba9adcc88
commit d8072ee06e
3 changed files with 15 additions and 3 deletions

View File

@@ -108,9 +108,11 @@ func main() {
}
logger.Info("Connected to database")
// Clear existing tokens
// Clear stale data
_ = db.MustExec("DELETE FROM sign_sessions")
_ = db.MustExec("DELETE FROM servers")
_ = db.MustExec("DELETE FROM cafe_accepted")
_ = db.MustExec("UPDATE characters SET cafe_time=0")
// Clean the DB if the option is on.
if erupeConfig.DevMode && erupeConfig.DevModeOptions.CleanDB {