move ProxyPort config out of DevMode

This commit is contained in:
wish
2023-11-26 20:50:08 +11:00
parent e39630564e
commit a2f488e5e3
4 changed files with 20 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ func cleanDB(db *sqlx.DB, config *_config.Config) {
_ = db.MustExec("DELETE FROM guild_characters")
_ = db.MustExec("DELETE FROM guilds")
_ = db.MustExec("DELETE FROM characters")
if !config.DevMode || config.DevModeOptions.ProxyPort == 0 {
if config.ProxyPort == 0 {
_ = db.MustExec("DELETE FROM sign_sessions")
}
_ = db.MustExec("DELETE FROM users")