fix more typos
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user