Deskripsi:
- update api yang pake filter idgrup, ketika idgrup=''

No Issues
This commit is contained in:
amel
2024-12-23 10:47:51 +08:00
parent bce9135119
commit b66fb4a629
3 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ export async function GET(request: Request) {
return NextResponse.json({ success: false, message: "Anda harus login untuk mengakses ini" }, { status: 401 });
}
if (idGroup == "null" || idGroup == undefined) {
if (idGroup == "null" || idGroup == undefined || idGroup == "") {
grup = user.idGroup
} else {
grup = idGroup