upd: order tugas

Deskripsi:
- order tugas pada tugas divisi dan kegiatan

NO Issues'
This commit is contained in:
2025-10-07 15:09:20 +08:00
parent d1a591a63a
commit 150151e823
4 changed files with 6 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ export async function GET(request: Request, context: { params: { id: string } })
createdAt: true
},
orderBy: {
createdAt: 'asc'
dateStart: 'asc'
}
})

View File

@@ -76,7 +76,7 @@ export async function GET(request: Request, context: { params: { id: string } })
dateEnd: true,
},
orderBy: {
createdAt: 'asc'
dateStart: 'asc'
}
})

View File

@@ -68,7 +68,7 @@ export async function GET(request: Request, context: { params: { id: string } })
createdAt: true
},
orderBy: {
createdAt: 'asc'
dateStart: 'asc'
}
})
@@ -78,8 +78,8 @@ export async function GET(request: Request, context: { params: { id: string } })
dateEnd: moment(v.dateEnd).format("DD-MM-YYYY"),
createdAt: moment(v.createdAt).format("DD-MM-YYYY HH:mm"),
}))
const dataFix = _.orderBy(formatData, 'createdAt', 'asc')
allData = dataFix
// const dataFix = _.orderBy(formatData, 'createdAt', 'asc')
allData = formatData
} else if (kategori == "file") {
const dataFile = await prisma.projectFile.findMany({

View File

@@ -75,7 +75,7 @@ export async function GET(request: Request, context: { params: { id: string } })
dateEnd: true,
},
orderBy: {
createdAt: 'asc'
dateStart: 'asc'
}
})