operator: add app task status route
This commit is contained in:
@@ -53,6 +53,7 @@ exports = module.exports = {
|
||||
backup,
|
||||
listBackups,
|
||||
|
||||
getTask,
|
||||
getLocalLogfilePaths,
|
||||
getLogs,
|
||||
|
||||
@@ -934,6 +935,13 @@ async function listByUser(user) {
|
||||
return result.filter((app) => canAccess(app, user));
|
||||
}
|
||||
|
||||
async function getTask(app) {
|
||||
assert.strictEqual(typeof app, 'object');
|
||||
|
||||
if (!app.taskId) return null;
|
||||
return await tasks.get(app.taskId);
|
||||
}
|
||||
|
||||
async function downloadManifest(appStoreId, manifest) {
|
||||
if (!appStoreId && !manifest) throw new BoxError(BoxError.BAD_FIELD, 'Neither manifest nor appStoreId provided');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user