Allow to get backups by type in backupdb

This commit is contained in:
Johannes Zellner
2017-04-24 12:41:19 +02:00
parent 5b9d4daafe
commit 880f7b4cd3
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ function getPaged(page, perPage, callback) {
assert(typeof perPage === 'number' && perPage > 0);
assert.strictEqual(typeof callback, 'function');
backupdb.getPaged(page, perPage, function (error, results) {
backupdb.getPaged(backupdb.BACKUP_TYPE_BOX, page, perPage, function (error, results) {
if (error) return callback(new BackupsError(BackupsError.INTERNAL_ERROR, error));
callback(null, results);