Fix notification service field names
cgen-ed3a6d29c49f48aa950295df52af46b0
This commit is contained in:
parent
2e7c77d11f
commit
121e8c2681
1 changed files with 5 additions and 3 deletions
|
|
@ -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,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue