diff options
author | Amine Mouafik <amine@mouafik.fr> | 2019-11-28 17:55:35 +0700 |
---|---|---|
committer | Amine Mouafik <amine@mouafik.fr> | 2019-11-28 17:55:35 +0700 |
commit | dc8ff86d2f1461f1dd1f8316908a1eb85d059bdf (patch) | |
tree | 73330c351abff1e42c99a4ac46d50bd84afc53ab /app | |
parent | Update feature list for Ferdi 5.4.0 (diff) | |
download | ferdium-server-dc8ff86d2f1461f1dd1f8316908a1eb85d059bdf.tar.gz ferdium-server-dc8ff86d2f1461f1dd1f8316908a1eb85d059bdf.tar.zst ferdium-server-dc8ff86d2f1461f1dd1f8316908a1eb85d059bdf.zip |
#13 Remove uneccessary validation on service update
Diffstat (limited to 'app')
-rw-r--r-- | app/Controllers/Http/ServiceController.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js index 4a4a8c4..90055b6 100644 --- a/app/Controllers/Http/ServiceController.js +++ b/app/Controllers/Http/ServiceController.js | |||
@@ -179,17 +179,6 @@ class ServiceController { | |||
179 | }); | 179 | }); |
180 | } else { | 180 | } else { |
181 | // Update service info | 181 | // Update service info |
182 | const validation = await validateAll(request.all(), { | ||
183 | name: 'required', | ||
184 | }); | ||
185 | if (validation.fails()) { | ||
186 | return response.status(401).send({ | ||
187 | message: 'Invalid POST arguments', | ||
188 | messages: validation.messages(), | ||
189 | status: 401, | ||
190 | }); | ||
191 | } | ||
192 | |||
193 | const data = request.all(); | 182 | const data = request.all(); |
194 | const { | 183 | const { |
195 | id, | 184 | id, |