QC User & Admin Responsive : Menu Kesehatan - Ekonomi
This commit is contained in:
@@ -23,6 +23,7 @@ export default async function kontakDaruratKeamananFindMany(context: Context) {
|
||||
try {
|
||||
const [data, total] = await Promise.all([
|
||||
prisma.kontakDaruratKeamanan.findMany({
|
||||
where,
|
||||
include: {
|
||||
kontakItems: {
|
||||
include: {
|
||||
|
||||
@@ -25,6 +25,7 @@ export default async function kontakItemFindMany(context: Context) {
|
||||
skip,
|
||||
take: limit,
|
||||
orderBy: { createdAt: "desc" },
|
||||
where,
|
||||
}),
|
||||
prisma.kontakItem.count({ where }),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user