upd: api moblie
Deskripsi: - update api mobile load project - update get user by id No Issues
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user