list user query fix

This commit is contained in:
2025-04-23 16:39:24 +05:30
parent 38014f7138
commit e93c2cde96

View File

@@ -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'
);