@@ -23,7 +23,7 @@ export async function GET(request: Request) {
|
||||
const cekDivision = await prisma.division.count({
|
||||
where: {
|
||||
id: idDivision,
|
||||
isActive: true
|
||||
// isActive: true
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export async function GET(request: Request) {
|
||||
const cekDivision = await prisma.division.count({
|
||||
where: {
|
||||
id: String(idDivision),
|
||||
isActive: true
|
||||
// isActive: true
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function GET(request: Request) {
|
||||
const cekDivision = await prisma.division.count({
|
||||
where: {
|
||||
id: idDivision,
|
||||
isActive: true
|
||||
// isActive: true
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ export async function GET(request: Request) {
|
||||
const cekDivision = await prisma.division.count({
|
||||
where: {
|
||||
id: idDivision,
|
||||
isActive: true
|
||||
// isActive: true
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ export async function GET(request: Request, context: { params: { id: string } })
|
||||
const data = await prisma.division.findUnique({
|
||||
where: {
|
||||
id: String(id),
|
||||
isActive: true,
|
||||
// isActive: true,
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export async function GET(request: Request) {
|
||||
const cekDivision = await prisma.division.count({
|
||||
where: {
|
||||
id: String(idDivision),
|
||||
isActive: true
|
||||
// isActive: true
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ export async function GET(request: Request) {
|
||||
|
||||
const cek = await prisma.division.count({
|
||||
where: {
|
||||
isActive: true,
|
||||
// isActive: true,
|
||||
id: String(divisi)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -2,7 +2,7 @@ import { NextResponse } from "next/server";
|
||||
|
||||
export async function GET(request: Request) {
|
||||
try {
|
||||
return NextResponse.json({ success: true, version: "1.2.4", tahap: "beta", update: "-tampilan login dashboard, -tampilan log user pada dashboard developer" }, { status: 200 });
|
||||
return NextResponse.json({ success: true, version: "1.2.5", tahap: "beta", update: "-fix api fitur divisi non aktif" }, { 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