Notifikasi mobile job

Add:
 src/lib/mobile/
 types/type-mobile-notification.ts

Fix:
src/app/api/auth/mobile-register/route.ts
src/app/api/mobile/job/route.ts

### No Issue
This commit is contained in:
2026-01-06 17:52:28 +08:00
parent 44d6788f6e
commit 87515ae19f
5 changed files with 212 additions and 47 deletions

View File

@@ -85,9 +85,8 @@ export async function POST(req: Request) {
// =========== START SEND NOTIFICATION =========== //
const findAllUserBySendTo = await prisma.user.findMany({
where: {
masterUserRoleId: "2",
},
where: { masterUserRoleId: "2" },
select: { id: true },
});
console.log("Users to notify:", findAllUserBySendTo);