user creation bug fix
This commit is contained in:
@@ -52,7 +52,9 @@ export async function createUser(
|
||||
}">here</a> to register.`
|
||||
);
|
||||
|
||||
return newUser;
|
||||
return userModel
|
||||
.findOne({ pid: newUser.pid })
|
||||
.populate({ path: "orgId", select: "pid name avatar" });
|
||||
}
|
||||
|
||||
export async function getUser(userId: string) {
|
||||
|
||||
Reference in New Issue
Block a user