rts create bug fix
This commit is contained in:
@@ -71,6 +71,10 @@ export async function getUser(userId: string) {
|
||||
.populate({ path: "orgId", select: "_id pid name" });
|
||||
}
|
||||
|
||||
export async function getUserWithoutPopulate(userId: string) {
|
||||
return await userModel.findById(userId);
|
||||
}
|
||||
|
||||
export async function getUserByToken(token: string) {
|
||||
return await userModel.findOne({ "token.value": token });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user