fix collaboration notifikasi

This commit is contained in:
2025-03-03 15:27:01 +08:00
parent 55ecd9191c
commit 0d2d39ccc4
7 changed files with 126 additions and 73 deletions

View File

@@ -17,7 +17,9 @@ export type ITypeStatusNotifikasi =
| "Berhasil"
| "Proses"
| "Menunggu"
| "Gagal";
| "Gagal"
// Collaboration
| "Partisipan Project"
/**
* @param kategoriApp | "JOB", "VOTING", "EVENT", "DONASI", "INVESTASI", "COLLABORATION", "FORUM"

View File

@@ -246,6 +246,17 @@ export default function RealtimeProvider({
}
// ---------------------- INVESTASI ------------------------- //
// ---------------------- COLLABORATION ------------------------- //
if (
data.type == "trigger" &&
data.pushNotificationTo == "USER" &&
data.dataMessage?.kategoriApp == "COLLABORATION" &&
data.dataMessage?.status == "Partisipan Project"
) {
setNewUserNtf((e) => e + 1);
}
// ---------------------- COLLABORATION ------------------------- //
},
});