Update user-service.ts

This commit is contained in:
Daniel Hougaard
2025-08-05 22:05:02 +04:00
parent 986fe2fe23
commit 3fc7a71bc7

View File

@@ -173,7 +173,11 @@ export const userServiceFactory = ({
const getMe = async (userId: string) => {
const user = await userDAL.findUserEncKeyByUserId(userId);
if (!user) throw new NotFoundError({ message: `User with ID '${userId}' not found`, name: "GetMe" });
return user;
return {
...user,
encryptionVersion: user.encryptionVersion!
};
};
const deleteUser = async (userId: string) => {