Prioritize unread and newest notifications in adapter service
cgen-9abbf309a6eb42d0a0c516cc13bb9a31
This commit is contained in:
parent
ba7b963ecb
commit
e5a5607728
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue