#feat:
Deskripsi: - Realtime notifikasi ## No Issue
This commit is contained in:
@@ -8,10 +8,14 @@ export default async function adminNotifikasi_getByUserId() {
|
||||
const adminId = await user_getOneUserId();
|
||||
|
||||
const data = await prisma.notifikasi.findMany({
|
||||
|
||||
orderBy: {
|
||||
createdAt: "desc",
|
||||
},
|
||||
orderBy: [
|
||||
{
|
||||
isRead: "asc",
|
||||
},
|
||||
{
|
||||
createdAt: "desc",
|
||||
},
|
||||
],
|
||||
where: {
|
||||
adminId: adminId,
|
||||
userRoleId: "2",
|
||||
|
||||
Reference in New Issue
Block a user