mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update user-service.ts
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user