fix: fixing super admin
Deskripsi: - tugas divisi - kegiatan - home - filter No Issues
This commit is contained in:
@@ -49,8 +49,8 @@ export async function GET(request: Request, context: { params: { id: string } })
|
||||
const progress = Math.ceil((selesai / semua) * 100)
|
||||
|
||||
allData = {
|
||||
progress: progress,
|
||||
lastUpdate: moment(dataProgress[0].updatedAt).format("DD MMMM YYYY"),
|
||||
progress: (_.isNaN(progress)) ? 0 : progress,
|
||||
lastUpdate: moment(dataProgress[0]?.updatedAt).format("DD MMMM YYYY"),
|
||||
}
|
||||
} else if (kategori == "task") {
|
||||
const dataProgress = await prisma.projectTask.findMany({
|
||||
|
||||
@@ -2,7 +2,7 @@ import { NextResponse } from "next/server";
|
||||
|
||||
export async function GET(request: Request) {
|
||||
try {
|
||||
return NextResponse.json({ success: true, version: "0.1.6", mode: "staging" }, { status: 200 });
|
||||
return NextResponse.json({ success: true, version: "0.1.7", mode: "staging" }, { 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 });
|
||||
|
||||
Reference in New Issue
Block a user