diff --git a/src/backups.js b/src/backups.js index 62168f538..82b461fc0 100644 --- a/src/backups.js +++ b/src/backups.js @@ -62,7 +62,7 @@ function getAllPaged(page, perPage, callback) { api(backupConfig.provider).getAllPaged(backupConfig, page, perPage, function (error, backups) { if (error) return callback(new BackupsError(BackupsError.EXTERNAL_ERROR, error)); - return callback(null, backups); // [ { creationTime, boxVersion, restoreKey, dependsOn: [ ] } ] sorted by time (latest first + return callback(null, backups); // [ { creationTime, restoreKey } ] sorted by time (latest first }); }); } diff --git a/src/storage/caas.js b/src/storage/caas.js index edf918275..212ae691b 100644 --- a/src/storage/caas.js +++ b/src/storage/caas.js @@ -53,7 +53,6 @@ function getAllPaged(backupConfig, page, perPage, callback) { if (result.statusCode !== 200) return callback(new Error(result.text)); if (!result.body || !util.isArray(result.body.backups)) return callback(new Error('Unexpected response')); - // [ { creationTime, boxVersion, restoreKey, dependsOn: [ ] } ] sorted by time (latest first) return callback(null, result.body.backups); }); } diff --git a/src/storage/s3.js b/src/storage/s3.js index fa55dede1..dccbc42fa 100644 --- a/src/storage/s3.js +++ b/src/storage/s3.js @@ -51,16 +51,9 @@ function getAllPaged(backupConfig, page, perPage, callback) { if (error) return callback(error); var results = data.Contents.map(function (backup) { - var key = backup.Key.slice(backupConfig.prefix.length + 1); - - // This depends on the backups.js format of backup names :-( - var version = key.slice(key.lastIndexOf('-') + 2, -7); - return { creationTime: backup.LastModified, - boxVersion: version, - restoreKey: key, - dependsOn: [] // FIXME we have no information here + restoreKey: backup.Key.slice(backupConfig.prefix.length + 1) }; });