Forgot .length

This commit is contained in:
Johannes Zellner
2020-05-28 16:44:45 +02:00
parent 90c857e8fc
commit 154f768281
+1 -1
View File
@@ -389,7 +389,7 @@ function getBackupConfig(callback) {
var tmp = JSON.parse(value);
// ensure we have a proper retention policy, the rest api checks for validity on settings at the moment
if (!tmp.retentionPolicy || Object.keys(tmp.retentionPolicy) === 0) tmp.retentionPolicy = gDefaults[exports.BACKUP_CONFIG_KEY].retentionPolicy;
if (!tmp.retentionPolicy || Object.keys(tmp.retentionPolicy).length === 0) tmp.retentionPolicy = gDefaults[exports.BACKUP_CONFIG_KEY].retentionPolicy;
callback(null, tmp); // provider, token, password, region, prefix, bucket
});