Update Versi 1.5.27 #32

Merged
bagasbanuna merged 1009 commits from staging into main 2025-12-17 12:22:28 +08:00
2257 changed files with 106283 additions and 24385 deletions
Showing only changes of commit f06482a159 - Show all commits

View File

@@ -58,8 +58,6 @@ async function POST(request: Request) {
try {
const { data } = (await request.json()) as RequestBody;
console.log("body >>", data.bidang.name);
if (!data.bidang.name || !Array.isArray(data.subBidang)) {
return NextResponse.json(
{
@@ -80,7 +78,6 @@ async function POST(request: Request) {
`;
const lastId = rows[0]?.id ?? null;
const bidangId = lastId ? String(Number(lastId) + 1) : "1";
console.log("bidangId >>", bidangId);
const slugName = data.bidang.name.toLowerCase().replace(/\s+/g, "_");
@@ -97,8 +94,6 @@ async function POST(request: Request) {
where: { masterBidangBisnisId: createdBidang.id },
});
console.log("existingSubCount >>", existingSubCount);
// 3) generate unique ids satu-per-satu (cek ke DB via tx)
const subBidangToCreate: {
id: string;