Skip to content

Commit

Permalink
Fix: stats for today showed a random day, now showing today
Browse files Browse the repository at this point in the history
  • Loading branch information
oglimmer committed Feb 3, 2024
1 parent 4eb6269 commit 24a160e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/eliteGameDataStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ export class EliteGameDataStorage {
if (!this.db) {
throw Error('initEliteGame was not called!')
}
return await this.db.allAsyncT<{ userId: string }>(`select player as userId from elite_game where register_date = (select max(register_date) from elite_game where player = "\uFFFF") and player != "\uFFFF" order by play_timestamp desc`, [])
return await this.db.allAsyncT<{ userId: string }>(`select player as userId from elite_game where register_date = (select register_date from elite_game where identifier = (select max(identifier) from elite_game where player = "\uFFFF")) and player != "\uFFFF" order by play_timestamp desc`, [])
}
}

0 comments on commit 24a160e

Please sign in to comment.