## Deskripsi :
- Prisma seeder
### No Issue
This commit is contained in:
2024-07-25 10:15:21 +08:00
parent 6bdacd137e
commit f336e8ad30
11 changed files with 185 additions and 62 deletions

View File

@@ -11,9 +11,8 @@ export async function AdminEvent_getListTableByStatusId(statudId: string) {
where: {
eventMaster_StatusId: "1",
tanggal: {
gte: new Date
}
gte: new Date(),
},
},
select: {
id: true,
@@ -52,10 +51,11 @@ export async function AdminEvent_getListTableByStatusId(statudId: string) {
if (statudId === "2") {
const getReview = await prisma.event.findMany({
orderBy: {
createdAt: "desc",
updatedAt: "desc",
},
where: {
eventMaster_StatusId: "2",
active: true,
},
select: {
id: true,