fix delete user

This commit is contained in:
Alex Holliday
2025-06-24 11:45:51 +08:00
parent 06d35e1626
commit b282ff9883
3 changed files with 15 additions and 3 deletions
+1 -2
View File
@@ -412,8 +412,7 @@ class AuthController {
// 1. Find all the monitors associated with the team ID if superadmin
const result = await this.db.getMonitorsByTeamId({
query: {},
params: { teamId: user.teamId.toString() },
teamId: user.teamId.toString(),
});
if (user.role.includes("superadmin")) {