upd: firebase emty undefined

This commit is contained in:
2025-08-28 16:47:53 +08:00
parent 562470bcd3
commit ed133a7452
2 changed files with 2 additions and 2 deletions

View File

@@ -322,7 +322,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: "Divisi Baru",

View File

@@ -2,7 +2,7 @@ import { NextResponse } from "next/server";
export async function GET(request: Request) {
try {
return NextResponse.json({ success: true, version: "1.7.5", tahap: "beta", update: "-api mobile; -tambah laporan pada project dan tugas divisi; -tambah upload link pada project dan tugas divisi; -tambah detail tanggal dan jam pada project dan tugas divisi" }, { status: 200 });
return NextResponse.json({ success: true, version: "1.7.6", tahap: "beta", update: "-api mobile; -tambah laporan pada project dan tugas divisi; -tambah upload link pada project dan tugas divisi; -tambah detail tanggal dan jam pada project dan tugas divisi" }, { status: 200 });
} catch (error) {
console.error(error);
return NextResponse.json({ success: false, version: "Gagal mendapatkan version, coba lagi nanti (error: 500)", reason: (error as Error).message, }, { status: 500 });