Merge pull request 'amalia/15-okt-25' (#65) from amalia/15-okt-25 into join

Reviewed-on: bip/sistem-desa-mandiri#65
This commit is contained in:
2025-10-15 14:56:29 +08:00
5 changed files with 14 additions and 2 deletions

View File

@@ -3,8 +3,8 @@ import { funGetUserByCookies } from "@/module/auth";
import { createLogUser } from "@/module/user";
import _ from "lodash";
import moment from "moment";
import { NextResponse } from "next/server";
import "moment/locale/id";
import { NextResponse } from "next/server";
// GET ONE DETAIL DISKUSI UMUM
@@ -75,6 +75,9 @@ export async function GET(request: Request, context: { params: { id: string } })
img: true
}
}
},
orderBy: {
createdAt: "asc"
}
})

View File

@@ -63,6 +63,9 @@ export async function GET(request: Request, context: { params: { id: string } })
},
where: {
isActive:true
},
orderBy: {
createdAt: "asc"
}
},
}

View File

@@ -77,6 +77,9 @@ export async function GET(request: Request, context: { params: { id: string } })
img: true
}
}
},
orderBy: {
createdAt: "asc"
}
})

View File

@@ -54,6 +54,9 @@ export async function GET(request: Request, context: { params: { id: string } })
img: true
}
}
},
orderBy: {
createdAt: "asc"
}
})

View File

@@ -2,7 +2,7 @@ import { NextResponse } from "next/server";
export async function GET(request: Request) {
try {
return NextResponse.json({ success: true, version: "2.0.8", tahap: "beta", update: "-api mobile; -login tanpa otp (mobile app); -tambah laporan pada project dan tugas divisi; -tambah upload link pada project dan tugas divisi; -tambah detail tanggal dan jam pada project dan tugas divisi; -api jenna ai; -privacy policy" }, { status: 200 });
return NextResponse.json({ success: true, version: "2.0.9", tahap: "beta", update: "-api mobile; -login tanpa otp (mobile app); -tambah laporan pada project dan tugas divisi; -tambah upload link pada project dan tugas divisi; -tambah detail tanggal dan jam pada project dan tugas divisi; -api jenna ai; -privacy policy" }, { 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 });