upd : data notif kosong

Deskripsi:
- filter data notif dg iduser = undefined

No Issues
This commit is contained in:
2025-08-28 15:08:14 +08:00
parent e5eb2e1cc2
commit 1621e95af2
4 changed files with 7 additions and 1 deletions

View File

@@ -254,6 +254,7 @@ export async function POST(request: Request) {
}
dataNotif.filter((v: any) => v.idUserTo != undefined && v.idUserTo != null && v.idUserTo != "" && v.idUserTo != userId)
const pushNotif = dataPush.filter((item) => item.subscription != undefined)