list user query fix
This commit is contained in:
@@ -65,7 +65,7 @@ export async function getUserByEmail(email: string) {
|
||||
|
||||
export async function listUsers(tenantId: string) {
|
||||
return await userModel
|
||||
.find({ $and: [{ tenantId: tenantId }, { dev: false }] })
|
||||
.find({ $and: [{ tenantId: tenantId }, { dev: { $ne: true } }] })
|
||||
.select(
|
||||
'_id pid orgId firstName lastName name email role avatar status createdAt createdBy lastLogin'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user