From dc8ff86d2f1461f1dd1f8316908a1eb85d059bdf Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Thu, 28 Nov 2019 17:55:35 +0700 Subject: #13 Remove uneccessary validation on service update --- app/Controllers/Http/ServiceController.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'app/Controllers/Http') 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 { }); } else { // Update service info - const validation = await validateAll(request.all(), { - name: 'required', - }); - if (validation.fails()) { - return response.status(401).send({ - message: 'Invalid POST arguments', - messages: validation.messages(), - status: 401, - }); - } - const data = request.all(); const { id, -- cgit v1.2.3-54-g00ecf