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, }); }, };