upd: list pengaduan

Deskripsi:
- pencarian data list pengaduan

No Issues
This commit is contained in:
2025-11-07 15:19:23 +08:00
parent e0456b2dba
commit 928ecb4c76
4 changed files with 206 additions and 131 deletions

View File

@@ -500,7 +500,7 @@ const PengaduanRoute = new Elysia({
]
}
if (status && status !== "all") {
if (status && status !== "semua") {
where = {
...where,
status: status
@@ -511,7 +511,7 @@ const PengaduanRoute = new Elysia({
skip,
take: !take ? 10 : Number(take),
orderBy: {
createdAt: "asc"
createdAt: "desc"
},
where,
select: {