apps: add backup start and finish events
these can then be used by the UI to show errors fixes #797
This commit is contained in:
+1
-1
@@ -509,7 +509,7 @@ async function clone(req, res, next) {
|
||||
async function backup(req, res, next) {
|
||||
assert.strictEqual(typeof req.app, 'object');
|
||||
|
||||
const [error, result] = await safe(apps.backup(req.app));
|
||||
const [error, result] = await safe(apps.backup(req.app, AuditSource.fromRequest(req)));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(202, { taskId: result.taskId }));
|
||||
|
||||
Reference in New Issue
Block a user