fix more typos

This commit is contained in:
Girish Ramakrishnan
2022-06-03 09:10:37 -07:00
parent 7952a67ed2
commit 4bee30dd83
2 changed files with 3 additions and 1 deletions

View File

@@ -436,7 +436,7 @@ async function setStorage(req, res, next) {
assert.strictEqual(typeof req.body, 'object');
assert.strictEqual(typeof req.app, 'object');
if (req.body.storageVolumeId !== null && typeof req.body.dataVolumeId !== 'string') return next(new HttpError(400, 'storageVolumeId must be a string'));
if (req.body.storageVolumeId !== null && typeof req.body.storageVolumeId !== 'string') return next(new HttpError(400, 'storageVolumeId must be a string'));
if (req.body.storageVolumePrefix !== null && typeof req.body.storageVolumePrefix !== 'string') return next(new HttpError(400, 'storageVolumePrefix must be a string'));
const [error, result] = await safe(apps.setStorage(req.app, req.body.storageVolumeId, req.body.storageVolumePrefix, AuditSource.fromRequest(req)));