Fix bug: backend didn't cleanup stale players

This commit is contained in:
Stephen Seo 2022-04-07 11:16:50 +09:00
parent 9fc0408d16
commit 23d9b5647e

View file

@ -971,7 +971,7 @@ impl DBHandler {
fn cleanup_stale_players(&self, conn: Option<&Connection>) -> Result<(), String> {
if conn.is_none() {
return self.cleanup_stale_games(Some(&self.get_conn(DBFirstRun::NotFirstRun)?));
return self.cleanup_stale_players(Some(&self.get_conn(DBFirstRun::NotFirstRun)?));
}
let conn = conn.unwrap();