Merge pull request #46 from ScrawnyRonnie/master

Fix order of dates
This commit is contained in:
ScrawnyRonnie 2024-03-22 16:18:06 -04:00 committed by GitHub
commit df93b6a3ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -384,7 +384,7 @@ export async function get_avatar_kd_byDate(id) {
' SUM(CASE WHEN victim_id = $1 THEN 1 ELSE 0 END)::int AS deaths' +
' FROM killactivity GROUP BY date HAVING' +
' SUM(CASE WHEN killer_id = $1 THEN 1 ELSE 0 END) > 0 OR SUM(CASE WHEN victim_id = $1 THEN 1 ELSE 0 END) > 0' +
' ORDER BY date DESC', [id])
' ORDER BY MIN(timestamp) DESC', [id])
return kd.rows;
} catch (e) {
if (e.code)