fix: wrong variable name
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s
This commit is contained in:
parent
74d80a163d
commit
9c04b20992
1 changed files with 5 additions and 2 deletions
|
|
@ -33,9 +33,12 @@ export const useNotification = defineStore('noti-store', () => {
|
||||||
return res.data;
|
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 }>(
|
const res = await api.put<Notification & { id: string }>(
|
||||||
`/notification/${paymentId}`,
|
`/notification/${notificationId}`,
|
||||||
payload,
|
payload,
|
||||||
);
|
);
|
||||||
if (res.status >= 400) return null;
|
if (res.status >= 400) return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue