From 121e8c26814be7bb5b5c6656afbeb6d1f7917ae9 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 16 Aug 2025 04:15:17 +0000 Subject: [PATCH] Fix notification service field names cgen-ed3a6d29c49f48aa950295df52af46b0 --- client/lib/aethex-database-adapter.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index fae9bfb1..2ed18b23 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -440,19 +440,21 @@ export const aethexNotificationService = { async markAsRead(notificationId: string): Promise { await supabase .from("notifications") - .update({ is_read: true }) + .update({ read: true }) .eq("id", notificationId); }, async createNotification( userId: string, type: string, - data: any, + title: string, + message: string, ): Promise { await supabase.from("notifications").insert({ user_id: userId, type, - data, + title, + message, }); }, };