(admin) faster profile moderation – sort reports from most urgent

This commit is contained in:
Andrea Vos 2023-06-26 22:33:32 +02:00
parent a43c7c0ff6
commit 20ca27aeb5

View File

@ -410,7 +410,7 @@ router.get('/admin/reports', handleErrorAsync(async (req, res) => {
WHERE reports.id > ${cutoff}
AND sus.username IS NOT NULL
GROUP BY reports.id
ORDER BY min(reports.isHandled) ASC, reports.id DESC
ORDER BY min(reports.isHandled) ASC, min(reports.isAutomatic) ASC, reports.id ASC
`));
}));