rev : report divisi
Deskripsi: - report semua divisi api - report semua divisi ui No Issues
This commit is contained in:
@@ -223,7 +223,22 @@ export async function GET(request: Request) {
|
||||
// CHART EVENT
|
||||
let kondisiEvent, kondisiSelesai, kondisiComingSoon
|
||||
if (division == "undefined") {
|
||||
kondisiEvent = {
|
||||
// kondisiEvent = {
|
||||
// isActive: true,
|
||||
// Division: {
|
||||
// idGroup: String(grup)
|
||||
// },
|
||||
// DivisionCalendarReminder: {
|
||||
// some: {
|
||||
// dateStart: {
|
||||
// gte: new Date(String(date)),
|
||||
// lte: new Date(String(dateAkhir))
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
kondisiSelesai = {
|
||||
isActive: true,
|
||||
Division: {
|
||||
idGroup: String(grup)
|
||||
@@ -232,24 +247,39 @@ export async function GET(request: Request) {
|
||||
some: {
|
||||
dateStart: {
|
||||
gte: new Date(String(date)),
|
||||
lte: new Date()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
kondisiComingSoon = {
|
||||
isActive: true,
|
||||
Division: {
|
||||
idGroup: String(grup)
|
||||
},
|
||||
DivisionCalendarReminder: {
|
||||
some: {
|
||||
dateStart: {
|
||||
gt: new Date(),
|
||||
lte: new Date(String(dateAkhir))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
kondisiEvent = {
|
||||
isActive: true,
|
||||
idDivision: String(division),
|
||||
DivisionCalendarReminder: {
|
||||
some: {
|
||||
dateStart: {
|
||||
gte: new Date(String(date)),
|
||||
lte: new Date(String(dateAkhir))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// kondisiEvent = {
|
||||
// isActive: true,
|
||||
// idDivision: String(division),
|
||||
// DivisionCalendarReminder: {
|
||||
// some: {
|
||||
// dateStart: {
|
||||
// gte: new Date(String(date)),
|
||||
// lte: new Date(String(dateAkhir))
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
kondisiSelesai = {
|
||||
isActive: true,
|
||||
|
||||
Reference in New Issue
Block a user