upd: api mobile

Deskripsi:
- pagination pada api mobile member, diskusi umum dan pengumuman

No Issues
This commit is contained in:
amel
2025-06-11 17:27:20 +08:00
parent 6295938ab1
commit a1d7334365
3 changed files with 6 additions and 8 deletions

View File

@@ -45,8 +45,8 @@ export async function GET(request: Request) {
}
const data = await prisma.discussion.findMany({
// skip: dataSkip,
// take: 10,
skip: dataSkip,
take: 10,
where: {
isActive: status == "false" ? false : true,
idVillage: String(villageId),