fix event admin

This commit is contained in:
2025-02-03 12:34:13 +08:00
parent 795bda6914
commit b03f242af4
13 changed files with 331 additions and 160 deletions

View File

@@ -85,7 +85,6 @@ export async function GET(
},
});
await prisma.$disconnect();
return NextResponse.json({
success: true,
message: "Success create sponsor",
@@ -93,7 +92,6 @@ export async function GET(
});
} catch (error) {
backendLogger.error("Error get sponsor event", error);
await prisma.$disconnect();
return NextResponse.json(
{
success: false,
@@ -102,5 +100,7 @@ export async function GET(
},
{ status: 500 }
);
} finally {
await prisma.$disconnect();
}
}