fix profiel query

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-03-24 13:19:06 +01:00
parent 75995cb483
commit 56430e964a

View File

@@ -170,8 +170,7 @@ export class ProfileBuffer extends BaseBuffer {
FROM ${TABLE_NAMES.profiles}
WHERE (id, project_id) IN (${tuples})
${withDateFilter ? 'AND created_at > now() - INTERVAL 2 DAY' : ''}
GROUP BY id, project_id
ORDER BY created_at DESC`
GROUP BY id, project_id`
);
for (const row of rows) {
result.set(`${row.project_id}:${row.id}`, row);