fix profiel query
This commit is contained in:
@@ -170,8 +170,7 @@ export class ProfileBuffer extends BaseBuffer {
|
|||||||
FROM ${TABLE_NAMES.profiles}
|
FROM ${TABLE_NAMES.profiles}
|
||||||
WHERE (id, project_id) IN (${tuples})
|
WHERE (id, project_id) IN (${tuples})
|
||||||
${withDateFilter ? 'AND created_at > now() - INTERVAL 2 DAY' : ''}
|
${withDateFilter ? 'AND created_at > now() - INTERVAL 2 DAY' : ''}
|
||||||
GROUP BY id, project_id
|
GROUP BY id, project_id`
|
||||||
ORDER BY created_at DESC`
|
|
||||||
);
|
);
|
||||||
for (const row of rows) {
|
for (const row of rows) {
|
||||||
result.set(`${row.project_id}:${row.id}`, row);
|
result.set(`${row.project_id}:${row.id}`, row);
|
||||||
|
|||||||
Reference in New Issue
Block a user