Allow any format for noop backup site
This commit is contained in:
+2
-2
@@ -487,7 +487,7 @@ async function add(data, auditSource) {
|
||||
encryptedFilenames = data.encryptedFilenames || false,
|
||||
encryptionPasswordHint = data.encryptionPasswordHint || null;
|
||||
|
||||
const formatError = backupFormats.validateFormat(format);
|
||||
const formatError = backupFormats.validateFormat(provider, format);
|
||||
if (formatError) throw formatError;
|
||||
|
||||
const nameError = validateName(name);
|
||||
@@ -548,7 +548,7 @@ async function createPseudo(data) {
|
||||
const encryptionPassword = data.encryptionPassword ?? null,
|
||||
encryptedFilenames = !!data.encryptedFilenames;
|
||||
|
||||
const formatError = backupFormats.validateFormat(format);
|
||||
const formatError = backupFormats.validateFormat(provider, format);
|
||||
if (formatError) throw formatError;
|
||||
|
||||
let encryption = null;
|
||||
|
||||
Reference in New Issue
Block a user