From e5a5607728daf72d719f6c3925c7657a1d4b3082 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 18 Oct 2025 03:43:02 +0000 Subject: [PATCH] Prioritize unread and newest notifications in adapter service cgen-9abbf309a6eb42d0a0c516cc13bb9a31 --- client/lib/aethex-database-adapter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index ef6af20a..3799997d 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -1023,8 +1023,9 @@ export const aethexNotificationService = { .from("notifications") .select("*") .eq("user_id", userId) + .order("read", { ascending: true }) .order("created_at", { ascending: false }) - .limit(10); + .limit(20); if (error) { console.warn("Error fetching notifications:", error);