Return args as part of task.get
the ui needs this to repair any failed app task
This commit is contained in:
@@ -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 }));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user