From 928acf2c03c6290e0cd2915c9a73c5f6ca037e80 Mon Sep 17 00:00:00 2001 From: amaliadwiy Date: Sat, 30 May 2026 14:44:16 +0800 Subject: [PATCH 1/3] bump: version 0.1.19 + migration --- package.json | 2 +- prisma/migrations/20260530064416_auto/migration.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20260530064416_auto/migration.sql diff --git a/package.json b/package.json index cebe27c..2d5f9aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sistem-desa-mandiri", - "version": "0.1.18", + "version": "0.1.19", "private": true, "scripts": { "dev": "next dev --experimental-https", diff --git a/prisma/migrations/20260530064416_auto/migration.sql b/prisma/migrations/20260530064416_auto/migration.sql new file mode 100644 index 0000000..af5102c --- /dev/null +++ b/prisma/migrations/20260530064416_auto/migration.sql @@ -0,0 +1 @@ +-- This is an empty migration. \ No newline at end of file From 026e07ac78f3a2a264f09d5bbbaa099433506882 Mon Sep 17 00:00:00 2001 From: amaliadwiy Date: Mon, 8 Jun 2026 11:22:28 +0800 Subject: [PATCH 2/3] fix: decode URI component pada nama file upload di endpoint mobile --- src/app/api/mobile/project/file/[id]/route.ts | 2 +- src/app/api/mobile/project/task/file/[id]/route.ts | 2 +- src/app/api/mobile/task/file/[id]/route.ts | 2 +- src/app/api/mobile/task/route.ts | 2 +- src/app/api/mobile/task/tugas/file/[id]/route.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/api/mobile/project/file/[id]/route.ts b/src/app/api/mobile/project/file/[id]/route.ts index 69b591f..97820bb 100644 --- a/src/app/api/mobile/project/file/[id]/route.ts +++ b/src/app/api/mobile/project/file/[id]/route.ts @@ -164,7 +164,7 @@ export async function POST(request: Request, context: { params: { id: string } } if (String(pair[0]).substring(0, 4) == "file") { const file = body.get(pair[0]) as File const fExt = file.name.split(".").pop() - const fName = file.name.replace("." + fExt, "") + const fName = decodeURIComponent(file.name.replace("." + fExt, "")) const upload = await funUploadFile({ file: file, dirId: DIR.project }) if (upload.success) { diff --git a/src/app/api/mobile/project/task/file/[id]/route.ts b/src/app/api/mobile/project/task/file/[id]/route.ts index b8b79a7..a9db587 100644 --- a/src/app/api/mobile/project/task/file/[id]/route.ts +++ b/src/app/api/mobile/project/task/file/[id]/route.ts @@ -84,7 +84,7 @@ export async function POST(request: Request, context: { params: { id: string } } const file = body.get(key) as File; const fExt = file.name.split(".").pop(); - const fName = file.name.replace("." + fExt, ""); + const fName = decodeURIComponent(file.name.replace("." + fExt, "")); const upload = await funUploadFile({ file, dirId: DIR.project }); if (!upload.success) continue; diff --git a/src/app/api/mobile/task/file/[id]/route.ts b/src/app/api/mobile/task/file/[id]/route.ts index 77d660d..3ab71dd 100644 --- a/src/app/api/mobile/task/file/[id]/route.ts +++ b/src/app/api/mobile/task/file/[id]/route.ts @@ -114,7 +114,7 @@ export async function POST(request: Request, context: { params: { id: string } } if (String(pair[0]).substring(0, 4) == "file") { const file = body.get(pair[0]) as File const fExt = file.name.split(".").pop() - const fName = file.name.replace("." + fExt, "") + const fName = decodeURIComponent(file.name.replace("." + fExt, "")) const upload = await funUploadFile({ file: file, dirId: DIR.task }) diff --git a/src/app/api/mobile/task/route.ts b/src/app/api/mobile/task/route.ts index 784be12..fffe58f 100644 --- a/src/app/api/mobile/task/route.ts +++ b/src/app/api/mobile/task/route.ts @@ -213,7 +213,7 @@ export async function POST(request: Request) { if (String(pair[0]).substring(0, 4) == "file") { const file = body.get(pair[0]) as File const fExt = file.name.split(".").pop() - const fName = file.name.replace("." + fExt, "") + const fName = decodeURIComponent(file.name.replace("." + fExt, "")) const upload = await funUploadFile({ file: file, dirId: DIR.task }) if (upload.success) { diff --git a/src/app/api/mobile/task/tugas/file/[id]/route.ts b/src/app/api/mobile/task/tugas/file/[id]/route.ts index b9f7365..994952b 100644 --- a/src/app/api/mobile/task/tugas/file/[id]/route.ts +++ b/src/app/api/mobile/task/tugas/file/[id]/route.ts @@ -87,7 +87,7 @@ export async function POST(request: Request, context: { params: { id: string } } const file = body.get(key) as File; const fExt = file.name.split(".").pop(); - const fName = file.name.replace("." + fExt, ""); + const fName = decodeURIComponent(file.name.replace("." + fExt, "")); const upload = await funUploadFile({ file, dirId: DIR.task }); if (!upload.success) continue; From 8a938257b7f64497ede7038f981fd15b1379987c Mon Sep 17 00:00:00 2001 From: amaliadwiy Date: Mon, 8 Jun 2026 14:42:22 +0800 Subject: [PATCH 3/3] fix: ubah orderBy notifikasi ke createdAt desc agar pagination urut tanggal terbaru --- src/app/api/mobile/home/notification/route.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/api/mobile/home/notification/route.ts b/src/app/api/mobile/home/notification/route.ts index 445c078..b98ba88 100644 --- a/src/app/api/mobile/home/notification/route.ts +++ b/src/app/api/mobile/home/notification/route.ts @@ -27,9 +27,6 @@ export async function GET(request: Request) { idUserTo: userMobile.id }, orderBy: [ - { - isRead: 'asc' - }, { createdAt: 'desc' }