chore: implement pr feedback

This commit is contained in:
pit
2023-10-11 12:32:33 +03:00
committed by Mythie
parent f569361e57
commit 35087f551c
7 changed files with 154 additions and 130 deletions

View File

@ -15,7 +15,7 @@ export const updateUser = async ({ id, name, email, roles }: UpdateUserOptions)
},
});
const updatedUser = await prisma.user.update({
return await prisma.user.update({
where: {
id,
},
@ -25,5 +25,4 @@ export const updateUser = async ({ id, name, email, roles }: UpdateUserOptions)
roles,
},
});
return updatedUser;
};