order of dates

This commit is contained in:
ScrawnyRonnie 2024-03-22 16:12:44 -04:00
parent 377f69859b
commit 832ef90061

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)