"feat: update service implementations with new features and structural changes"
This commit is contained in:
@@ -82,6 +82,10 @@ async function changeToUser(userIdToPromote: string, userIdOfApplicant: string)
|
||||
return promoteResult;
|
||||
}
|
||||
|
||||
async function getUserById1(id: string): Promise<UserItem | null> {
|
||||
return prisma.userItem.findFirst({ where: { id } });
|
||||
}
|
||||
|
||||
async function getUserByEmail(email: string): Promise<void> {
|
||||
// return prisma.userItem.findUnique({
|
||||
// where: { email },
|
||||
@@ -113,6 +117,7 @@ export {
|
||||
listUsers,
|
||||
updateUser,
|
||||
deleteUser,
|
||||
getUserById,
|
||||
changeToUser,
|
||||
createNewUser,
|
||||
changeToAdmin,
|
||||
|
Reference in New Issue
Block a user