Sinkronisasi UI Admin & User Menu Landing Page, Submenu Profile, SDGSDesa
This commit is contained in:
@@ -16,7 +16,7 @@ async function sdgsDesaFindMany(context: Context) {
|
||||
},
|
||||
skip,
|
||||
take: limit,
|
||||
orderBy: { createdAt: "desc" }, // opsional, kalau mau urut berdasarkan waktu
|
||||
orderBy: { jumlah: "desc" }, // opsional, kalau mau urut berdasarkan waktu
|
||||
}),
|
||||
prisma.sDGSDesa.count({
|
||||
where: { isActive: true },
|
||||
|
||||
@@ -11,7 +11,7 @@ const SDGSDesa = new Elysia({
|
||||
})
|
||||
|
||||
// ✅ Find all
|
||||
.get("/find-many", sdgsDesaFindMany)
|
||||
.get("/findMany", sdgsDesaFindMany)
|
||||
|
||||
// ✅ Find by ID
|
||||
.get("/:id", sdgsDesaFindUnique)
|
||||
|
||||
Reference in New Issue
Block a user