diff options
author | vantezzen <properly@protonmail.com> | 2019-09-06 12:09:25 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-09-06 12:09:25 +0200 |
commit | 0fdf8fce75307992ecd784f22cf68ab5712b0b91 (patch) | |
tree | 0f0c052429b197cc2e28ddda059003c932e206b5 | |
parent | Fix recipe name validation (diff) | |
download | ferdium-server-0fdf8fce75307992ecd784f22cf68ab5712b0b91.tar.gz ferdium-server-0fdf8fce75307992ecd784f22cf68ab5712b0b91.tar.zst ferdium-server-0fdf8fce75307992ecd784f22cf68ab5712b0b91.zip |
Fix recipe name validation
-rw-r--r-- | app/Controllers/Http/ServiceController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js index 309ae09..1dfec49 100644 --- a/app/Controllers/Http/ServiceController.js +++ b/app/Controllers/Http/ServiceController.js | |||
@@ -20,7 +20,7 @@ class ServiceController { | |||
20 | 20 | ||
21 | // Validate user input | 21 | // Validate user input |
22 | const validation = await validateAll(request.all(), { | 22 | const validation = await validateAll(request.all(), { |
23 | name: 'required|alpha', | 23 | name: 'required|string', |
24 | recipeId: 'required', | 24 | recipeId: 'required', |
25 | }); | 25 | }); |
26 | if (validation.fails()) { | 26 | if (validation.fails()) { |