upd: api mobile status saat error

This commit is contained in:
2025-10-16 14:53:23 +08:00
parent 1b8bfebf4f
commit ed2c9495c3
14 changed files with 34 additions and 33 deletions

View File

@@ -15,7 +15,7 @@ export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const user = searchParams.get("user")
if (user == "null" || user == undefined || user == "") {
return NextResponse.json({ success: false, message: "Anda harus login untuk mengakses ini" }, { status: 401 });
return NextResponse.json({ success: false, message: "Anda harus login untuk mengakses ini" }, { status: 200 });
}
const userMobile = await funGetUserById({ id: user })