merge userdb.js into users.js

This commit is contained in:
Girish Ramakrishnan
2021-07-15 09:50:11 -07:00
parent 2840bba4bf
commit a1c61facdc
27 changed files with 1021 additions and 1456 deletions

View File

@@ -228,10 +228,11 @@ async function stopTask(id) {
}
async function stopAllTasks() {
debug('stopTask: stopping all tasks');
debug('stopAllTasks: stopping all tasks');
gTasks = {}; // this signals startTask() to not set completion status as "crashed"
safe(shell.promises.sudo('stopTask', [ STOP_TASK_CMD, 'all' ], { cwd: paths.baseDir() })); // stop in background, do not wait
const [error] = await safe(shell.promises.sudo('stopTask', [ STOP_TASK_CMD, 'all' ], { cwd: paths.baseDir() }));
if (error) debug(`stopAllTasks: error stopping stasks: ${error.message}`);
}
async function listByTypePaged(type, page, perPage) {