returning org object in list users
This commit is contained in:
@@ -88,7 +88,8 @@ export async function listUsers(tenantId: string) {
|
||||
.find({ $and: [{ tenantId: tenantId }, { dev: { $ne: true } }] })
|
||||
.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 updateUser(
|
||||
|
||||
Reference in New Issue
Block a user