Skip to content

Commit

Permalink
Merge pull request #93 from Mickhat/oli-fix-display-stats-today
Browse files Browse the repository at this point in the history
Fix: stats for today showed a random day, now showing today
  • Loading branch information
filip326 committed Feb 3, 2024
2 parents 4eb6269 + 24a160e commit 794e5f4
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 794e5f4

Please sign in to comment.