From 56430e964ae487dd7712611614403aef81730165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Tue, 24 Mar 2026 13:19:06 +0100 Subject: [PATCH] fix profiel query --- packages/db/src/buffers/profile-buffer.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/db/src/buffers/profile-buffer.ts b/packages/db/src/buffers/profile-buffer.ts index e7547b8b..c2474a48 100644 --- a/packages/db/src/buffers/profile-buffer.ts +++ b/packages/db/src/buffers/profile-buffer.ts @@ -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);