fix (donasi)

deskripsi:
- fix notifikasi to all user
This commit is contained in:
2025-01-20 11:33:00 +08:00
parent 9286de9ecb
commit 5f477a83d8
18 changed files with 419 additions and 185 deletions

View File

@@ -0,0 +1,24 @@
"use server";
import { prisma } from "@/app/lib";
export async function notifikasi_checkAuthorDonasiById({
userId,
donasiId,
}: {
userId: string;
donasiId: string;
}) {
const check = await prisma.donasi.findFirst({
where: {
authorId: userId,
id: donasiId,
},
});
if (check) {
return true;
} else {
return false;
}
}