upd: api mobile status saat error
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user