fix : firebase notification
Deskripsi: - empty array token undefined > semua fitur - update api version No Issues
This commit is contained in:
@@ -392,7 +392,7 @@ export async function POST(request: Request) {
|
||||
data: dataNotifFilter
|
||||
})
|
||||
|
||||
const tokenUnique = [...new Set(tokenDup.flat())];
|
||||
const tokenUnique = [...new Set(tokenDup.flat())].filter((v: any) => v != undefined && v != null && v != "");
|
||||
await sendFCMNotificationMany({
|
||||
token: tokenUnique,
|
||||
title: "Kegiatan Baru",
|
||||
|
||||
Reference in New Issue
Block a user