Add Flush function to send remaining achievements and call it in saveAchievements

This commit is contained in:
2025-05-24 23:05:37 +02:00
parent 4fbc49c52f
commit 9035a8284c
2 changed files with 18 additions and 0 deletions

View File

@@ -187,6 +187,7 @@ func saveAchievements(achievements *sync.Map) {
}
return true
})
Flush()
logger.Info("Saved %d achievements", count)
}