fix: wrong variable name
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s

This commit is contained in:
Methapon Metanipat 2024-11-08 09:23:53 +07:00 committed by Methapon2001
parent 74d80a163d
commit 9c04b20992

View file

@ -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 & { id: string }>(
`/notification/${paymentId}`,
`/notification/${notificationId}`,
payload,
);
if (res.status >= 400) return null;