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

@@ -11,7 +11,7 @@ export async function GET(request: Request) {
const userMobile = searchParams.get("user")
if (userMobile == "null" || userMobile == undefined || userMobile == "") {
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 user = await funGetUserById({ id: userMobile })