From 386da12d7fc2ad3899a1dd7737c0912551b63a9f Mon Sep 17 00:00:00 2001 From: FURRO404 Date: Thu, 2 Jul 2026 12:07:00 -0700 Subject: [PATCH] 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. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 967f8d7..5af7da6 100644 --- a/server.js +++ b/server.js @@ -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