Browse Source

Fix user commands not working

Fixes #4593
pull/4594/head
Pavel Djundik 6 days ago
parent
commit
a15ac88ff2
  1. 2
      server/command-line/users/add.ts
  2. 2
      server/command-line/users/edit.ts
  3. 2
      server/command-line/users/remove.ts
  4. 2
      server/command-line/users/reset.ts

2
server/command-line/users/add.ts

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

2
server/command-line/users/edit.ts

@ -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) {

2
server/command-line/users/remove.ts

@ -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 {

2
server/command-line/users/reset.ts

@ -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) {

Loading…
Cancel
Save