skip validation in the route

This commit is contained in:
Girish Ramakrishnan
2020-05-14 21:42:01 -07:00
parent af9e3e38ce
commit 59582f16c4
2 changed files with 1 additions and 2 deletions

View File

@@ -107,7 +107,6 @@ function setBackupConfig(req, res, next) {
if ('acceptSelfSignedCerts' in req.body && typeof req.body.acceptSelfSignedCerts !== 'boolean') return next(new HttpError(400, 'format must be a boolean'));
if (!req.body.retentionPolicy || typeof req.body.retentionPolicy !== 'object') return next(new HttpError(400, 'retentionPolicy is required'));
if (typeof req.body.retentionPolicy.keepWithinSecs !== 'number') return next(400, 'keepWithinSecs is required');
// testing the backup using put/del takes a bit of time at times
req.clearTimeout();