Fix user commands not working

Fixes #4593
This commit is contained in:
Pavel Djundik 2022-06-21 10:51:24 +03:00
parent 4af5fc6f33
commit a15ac88ff2
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ program
}
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ClientManager = require("../../clientManager");
const ClientManager = require("../../clientManager").default;
const manager = new ClientManager();
const users = manager.getUsers();

View File

@ -18,7 +18,7 @@ program
}
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ClientManager = require("../../clientManager");
const ClientManager = require("../../clientManager").default;
const users = new ClientManager().getUsers();
if (users === undefined) {

View File

@ -17,7 +17,7 @@ program
}
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ClientManager = require("../../clientManager");
const ClientManager = require("../../clientManager").default;
const manager = new ClientManager();
try {

View File

@ -19,7 +19,7 @@ program
}
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ClientManager = require("../../clientManager");
const ClientManager = require("../../clientManager").default;
const users = new ClientManager().getUsers();
if (users === undefined) {