returning org obj in update user endpoint
This commit is contained in:
@@ -109,7 +109,8 @@ export async function updateUser(
|
||||
})
|
||||
.select(
|
||||
"_id pid orgId firstName lastName name email role avatar status createdAt createdBy lastLogin"
|
||||
);
|
||||
)
|
||||
.populate({ path: "orgId", select: "_id pid name avatar" });
|
||||
}
|
||||
|
||||
export async function updateUserInternal(
|
||||
|
||||
Reference in New Issue
Block a user