feat : filter api

This commit is contained in:
lukman
2024-08-06 17:43:40 +08:00
parent 1be70b3fc7
commit 549dadfba1
15 changed files with 102 additions and 88 deletions

View File

@@ -13,13 +13,11 @@ export async function getAllPosition(req: NextRequest) {
const user = await funGetUserByCookies()
console.log(groupID)
if (groupID == null) {
if (groupID == "null") {
grupFix = user.idGroup
} else {
grupFix = groupID
}
const positions = await prisma.position.findMany({
where: {