Merge pull request #2417 from bluewave-labs/fix/account-delete
fix: add empty query object to fix default destructuring, resolves #2386
This commit is contained in:
1 file changed
+2
-1
@@ -404,7 +404,8 @@ class AuthController {
|
|||||||
// 1. Find all the monitors associated with the team ID if superadmin
|
// 1. Find all the monitors associated with the team ID if superadmin
|
||||||
|
|
||||||
const result = await this.db.getMonitorsByTeamId({
|
const result = await this.db.getMonitorsByTeamId({
|
||||||
params: { teamId: user.teamId },
|
query: {},
|
||||||
|
params: { teamId: user.teamId.toString() },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (user.role.includes("superadmin")) {
|
if (user.role.includes("superadmin")) {
|
||||||
|
|||||||
Reference in new issue
Block a user