Merge pull request 'amalia/08-jun-26' (#55) from amalia/08-jun-26 into join
Reviewed-on: #55
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sistem-desa-mandiri",
|
||||
"version": "0.1.18",
|
||||
"version": "0.1.19",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --experimental-https",
|
||||
|
||||
1
prisma/migrations/20260530064416_auto/migration.sql
Normal file
1
prisma/migrations/20260530064416_auto/migration.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- This is an empty migration.
|
||||
@@ -27,9 +27,6 @@ export async function GET(request: Request) {
|
||||
idUserTo: userMobile.id
|
||||
},
|
||||
orderBy: [
|
||||
{
|
||||
isRead: 'asc'
|
||||
},
|
||||
{
|
||||
createdAt: 'desc'
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user