make backup progress work for per-app backups

This commit is contained in:
Girish Ramakrishnan
2017-09-28 11:12:12 -07:00
parent 404a019c56
commit 565c8445e1
5 changed files with 29 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ exports = module.exports = {
set: set,
setDetail: setDetail,
clear: clear,
get: get,
getAll: getAll,
UPDATE: 'update',
BACKUP: 'backup',
@@ -52,6 +52,11 @@ function clear(tag) {
debug('clearing %s', tag);
}
function get() {
function get(tag) {
return progress[tag];
}
function getAll() {
return progress;
}