"feat: update service implementations with new features and structural changes"

This commit is contained in:
louiscklaw
2025-06-04 02:35:14 +08:00
parent 99239c32a5
commit c2c6181332
6 changed files with 235 additions and 24 deletions

View File

@@ -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,