mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-01 06:00:24 -05:00
fix delete user
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user