Add boxUpdateInfo to the eventlog

this is used by the email digest code
This commit is contained in:
Girish Ramakrishnan
2019-02-20 16:18:37 -08:00
parent 36f3e3fe50
commit bb5fbbe746

View File

@@ -195,7 +195,7 @@ function updateToLatest(auditSource, callback) {
let task = tasks.startTask(tasks.TASK_UPDATE, [ boxUpdateInfo ]);
task.on('error', (error) => callback(new UpdaterError(UpdaterError.INTERNAL_ERROR, error)));
task.on('start', (taskId) => {
eventlog.add(eventlog.ACTION_UPDATE, auditSource, { taskId });
eventlog.add(eventlog.ACTION_UPDATE, auditSource, { taskId, boxUpdateInfo });
callback(null, taskId);
});
task.on('finish', (error) => {