upd: bersihin console log

This commit is contained in:
amel
2024-09-06 12:20:23 +08:00
parent 836cd58627
commit 30139e63d2
58 changed files with 93 additions and 97 deletions

View File

@@ -40,7 +40,7 @@ export async function POST(request: Request, context: { params: { id: string } }
return NextResponse.json({ success: true, message: "Berhasil menambah komentar", data: data, }, { status: 200 });
} catch (error) {
console.log(error);
console.error(error);
return NextResponse.json({ success: false, message: "Gagal menambah komentar, coba lagi nanti", reason: (error as Error).message, }, { status: 500 });
}
}