backups: query using identifier instead of type
this allows us to move the enums into backups.js instead of backupdb.js
This commit is contained in:
+1
-1
@@ -1925,7 +1925,7 @@ function listBackups(app, page, perPage, callback) {
|
||||
assert(typeof perPage === 'number' && perPage > 0);
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
backups.getByAppIdPaged(page, perPage, app.id, function (error, results) {
|
||||
backups.getByIdentifierAndStatePaged(app.id, backups.BACKUP_STATE_NORMAL, page, perPage, function (error, results) {
|
||||
if (error) return callback(error);
|
||||
|
||||
callback(null, results);
|
||||
|
||||
Reference in New Issue
Block a user