diff --git a/src/stores/notification/index.ts b/src/stores/notification/index.ts index 5aa43fe5..a1b2593c 100644 --- a/src/stores/notification/index.ts +++ b/src/stores/notification/index.ts @@ -33,9 +33,12 @@ export const useNotification = defineStore('noti-store', () => { return res.data; } - async function updateNotification(paymentId: string, payload: Notification) { + async function updateNotification( + notificationId: string, + payload: Notification, + ) { const res = await api.put( - `/notification/${paymentId}`, + `/notification/${notificationId}`, payload, ); if (res.status >= 400) return null;