fix tampilan html view

This commit is contained in:
2025-04-29 17:25:16 +08:00
parent 480fea026c
commit 0e7c491031
10 changed files with 96 additions and 30 deletions

View File

@@ -13,7 +13,7 @@ export async function GET(
const { name } = params;
const { searchParams } = new URL(request.url);
const page = searchParams.get("page");
const takeData = 6;
const takeData = 10;
const skipData = Number(page) * takeData - takeData;
const userLoginId = await funGetUserIdByToken();
@@ -51,7 +51,7 @@ export async function GET(
take: takeData,
skip: skipData,
orderBy: {
tanggal: "asc",
updatedAt: "desc",
},
where: {
active: true,