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:
FURRO404
2026-07-02 12:07:00 -07:00
parent 5e6430daaf
commit 386da12d7f
+1 -1
View File
@@ -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