This commit is contained in:
Rizky 2024-05-15 11:59:48 +07:00
parent e86340f9fd
commit a4ee53d2de
9 changed files with 20 additions and 20 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -129,20 +129,20 @@ export const initExtNotif = async (vi: VG, prasi_ext: PrasiExt) => {
}); });
} }
}; };
w.notif.send = async (data: NOTIF_ARG) => {
if (vi && vi.site.api) {
return await vi.site.api._notif("send", {
type: "send",
id:
typeof data.user_id === "string"
? data.user_id
: data.user_id.toString(),
body: data.body,
title: data.title,
data: data.data,
});
}
};
} }
w.notif.send = async (data: NOTIF_ARG) => {
if (vi && vi.site.api) {
return await vi.site.api._notif("send", {
type: "send",
id:
typeof data.user_id === "string"
? data.user_id
: data.user_id.toString(),
body: data.body,
title: data.title,
data: data.data,
});
}
};
}; };