diff --git a/bun.lockb b/bun.lockb index 11ec4c0..7db5e01 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/app/api/mobile/project/[id]/route.ts b/src/app/api/mobile/project/[id]/route.ts index 9bbd6d7..e261dae 100644 --- a/src/app/api/mobile/project/[id]/route.ts +++ b/src/app/api/mobile/project/[id]/route.ts @@ -81,8 +81,8 @@ export async function GET(request: Request, context: { params: { id: string } }) dateEnd: moment(v.dateEnd).format("DD-MM-YYYY"), createdAt: moment(v.createdAt).format("DD-MM-YYYY HH:mm"), })) - const dataFix = _.orderBy(formatData, 'createdAt', 'asc') - allData = dataFix + // const dataFix = _.orderBy(formatData, 'createdAt', 'asc') + allData = formatData } else if (kategori == "file") { const dataFile = await prisma.projectFile.findMany({ diff --git a/src/app/api/version-app/route.ts b/src/app/api/version-app/route.ts index eeee64a..a3effd9 100644 --- a/src/app/api/version-app/route.ts +++ b/src/app/api/version-app/route.ts @@ -2,7 +2,7 @@ import { NextResponse } from "next/server"; export async function GET(request: Request) { try { - return NextResponse.json({ success: true, version: "1.5.6", tahap: "beta", update: "-fix mobile api" }, { status: 200 }); + return NextResponse.json({ success: true, version: "1.5.7", tahap: "beta", update: "-fix mobile api" }, { status: 200 }); } catch (error) { console.error(error); return NextResponse.json({ success: false, version: "Gagal mendapatkan version, coba lagi nanti (error: 500)", reason: (error as Error).message, }, { status: 500 }); diff --git a/src/module/_global/fun/count_time.ts b/src/module/_global/fun/count_time.ts index fe57234..5a26efa 100644 --- a/src/module/_global/fun/count_time.ts +++ b/src/module/_global/fun/count_time.ts @@ -23,8 +23,6 @@ export function countTime(date: Date) { return `${hours} jam` } else if (minutes > 0) { return `${minutes} mnt` - } else if (seconds > 10) { - return `${seconds} dtk` } else { return `baru saja` }