backupSite: enableForUpdates in add

This commit is contained in:
Girish Ramakrishnan
2025-09-23 10:21:43 +02:00
parent d08d4962a5
commit 08f7685ca3
2 changed files with 4 additions and 2 deletions

View File

@@ -85,6 +85,8 @@ async function add(req, res, next) {
if ('encryptionPasswordHint' in req.body && typeof req.body.encryptionPasswordHint !== 'string') return next(new HttpError(400, 'encryptionPasswordHint must be a string'));
if ('encryptedFilenames' in req.body && typeof req.body.encryptedFilenames !== 'boolean') return next(new HttpError(400, 'encryptedFilenames must be a boolean'));
if ('enableForUpdates' in req.body && typeof req.body.enableForUpdates !== 'boolean') return next(new HttpError(400, 'enableForUpdates must be a boolean'));
// testing the backup using put/del takes a bit of time at times
req.clearTimeout();