From b643ece23344d3102c80c5c4fa48c03b193aa56e Mon Sep 17 00:00:00 2001 From: Nathan219 Date: Wed, 17 May 2017 13:55:12 -0700 Subject: [PATCH] Don't pick values out of the body here, then also do it in the service. Only do it in 1 place --- lib/routes/instances/index.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/routes/instances/index.js b/lib/routes/instances/index.js index 4963dc410..c1d4e174a 100644 --- a/lib/routes/instances/index.js +++ b/lib/routes/instances/index.js @@ -275,21 +275,6 @@ app.get('/instances/', * @memberof module:rest/instances */ app.post('/instances/', mw.body('build').require().validate(validations.isObjectId), - mw.body( - 'autoForked', - 'build', - 'env', - 'ipWhitelist', - 'isIsolationGroupMaster', - 'isolated', - 'isTesting', - 'masterPod', - 'name', - 'owner', - 'parent', - 'shouldNotAutofork', - 'testingParentId' - ).pick(), // validate body types mw.body('owner.github').require() .then(