mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
quick fix
This commit is contained in:
@@ -213,6 +213,7 @@ async function handleWin(userId, gameState, io) {
|
||||
(gameState.score === existingStats.score && gameState.moves === existingStats.moves && timeTaken < existingStats.time);
|
||||
|
||||
if (isNewBest) {
|
||||
deleteUserSOTDStats.run(userId)
|
||||
insertSOTDStats.run({
|
||||
id: userId, user_id: userId,
|
||||
time: timeTaken,
|
||||
|
||||
Reference in New Issue
Block a user