Fix notification service field names

cgen-ed3a6d29c49f48aa950295df52af46b0
This commit is contained in:
Builder.io 2025-08-16 04:15:17 +00:00
parent 2e7c77d11f
commit 121e8c2681

View file

@ -440,19 +440,21 @@ export const aethexNotificationService = {
async markAsRead(notificationId: string): Promise<void> {
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<void> {
await supabase.from("notifications").insert({
user_id: userId,
type,
data,
title,
message,
});
},
};