upd: api moblie

Deskripsi:
- update api mobile load project
- update get user by id

No Issues
This commit is contained in:
amel
2025-05-08 17:26:40 +08:00
parent 6316f0c469
commit 502c98fd6d
7 changed files with 1337 additions and 1 deletions

View File

@@ -8,9 +8,21 @@ export default async function funGetUserById({ id }: { id: string }) {
},
});
if (!user) {
return {
id: undefined,
idUserRole: undefined,
name: undefined,
idVillage: undefined,
idGroup: undefined,
idPosition: undefined,
theme: undefined,
}
}
const village = await prisma.village.findUnique({
where: {
id: user?.idVillage
id: user.idVillage
}
})