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 } }] })
|
.find({ $and: [{ tenantId: tenantId }, { dev: { $ne: true } }] })
|
||||||
.select(
|
.select(
|
||||||
"_id pid orgId firstName lastName name email role avatar status createdAt createdBy lastLogin"
|
"_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(
|
export async function updateUser(
|
||||||
|
|||||||
Reference in New Issue
Block a user