fix event

deskripsi:
- fix database event
This commit is contained in:
2025-01-30 10:23:42 +08:00
parent abfa16339f
commit a5b9258da7
6 changed files with 61 additions and 15 deletions

View File

@@ -12,18 +12,18 @@ export async function GET(request: Request) {
}
try {
// const res = await prisma.masterBank.findMany({
// orderBy: {
// updatedAt: "asc",
// },
// where: {
// isActive: true,
// },
// });
const res = await prisma.masterStatusTransaksi.findMany({
orderBy: {
updatedAt: "asc",
},
where: {
isActive: true,
},
});
await prisma.$disconnect();
return NextResponse.json(
{ success: true, message: "Berhasil mendapatkan data", data: "" },
{ success: true, message: "Berhasil mendapatkan data", data: res },
{ status: 200 }
);
} catch (error) {