Return args as part of task.get

the ui needs this to repair any failed app task
This commit is contained in:
Girish Ramakrishnan
2019-11-23 18:06:31 -08:00
parent f543b98764
commit 6774514bd2
3 changed files with 4 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ function get(req, res, next) {
tasks.get(req.params.taskId, function (error, task) {
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, tasks.removePrivateFields(task)));
next(new HttpSuccess(200, task));
});
}
@@ -47,8 +47,6 @@ function list(req, res, next) {
tasks.listByTypePaged(req.query.type || null, page, perPage, function (error, result) {
if (error) return next(BoxError.toHttpError(error));
result = result.map(tasks.removePrivateFields);
next(new HttpSuccess(200, { tasks: result }));
});
}