fix: include endtime_unix in /api/player/:uid/games latest-row query
Brings this endpoint's query in line with the others (/api/player/:uid, /api/search/:nickname) so resolveCurrentSquadronIdentity can compare the game timestamp against the roster-sync snapshot here too.
This commit is contained in:
@@ -2218,7 +2218,7 @@ app.get('/api/player/:uid/games', (req, res) => {
|
||||
const { start_date, end_date, season, week } = req.query;
|
||||
|
||||
const latestNickQuery = `
|
||||
SELECT nick, squadron_name, clan_id
|
||||
SELECT nick, squadron_name, clan_id, endtime_unix
|
||||
FROM player_games_hist
|
||||
WHERE UID = ? AND nick NOT LIKE 'coop/%'
|
||||
ORDER BY session_id DESC
|
||||
|
||||
Reference in New Issue
Block a user