feat : update member

This commit is contained in:
lukman
2024-08-05 10:05:03 +08:00
parent 36bd1a3f04
commit e90c168d36
4 changed files with 18 additions and 10 deletions

View File

@@ -13,13 +13,17 @@ export async function getAllPosition(req: NextRequest) {
const user = await funGetUserByCookies()
console.log(groupID)
// if(user.)
if (groupID == null) {
grupFix = user.idGroup
} else {
grupFix = groupID
}
const positions = await prisma.position.findMany({
where: {
idGroup: String(groupID),
idGroup: String(grupFix),
isActive: (active == "true" ? true : false),
},
select: {