diff options
author | Bennett <hello@vantezzen.io> | 2020-03-10 15:07:49 +0100 |
---|---|---|
committer | Bennett <hello@vantezzen.io> | 2020-03-10 15:07:49 +0100 |
commit | e18ec6412a76556d71f5554f268d110e65921c63 (patch) | |
tree | fd9af129997aa7abbefcdd933a3653356cc60396 /app | |
parent | Fix lint (diff) | |
parent | Use env variables (diff) | |
download | ferdium-server-e18ec6412a76556d71f5554f268d110e65921c63.tar.gz ferdium-server-e18ec6412a76556d71f5554f268d110e65921c63.tar.zst ferdium-server-e18ec6412a76556d71f5554f268d110e65921c63.zip |
Merge branch 'master' of https://github.com/getferdi/server
Diffstat (limited to 'app')
-rw-r--r-- | app/Controllers/Http/WorkspaceController.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controllers/Http/WorkspaceController.js b/app/Controllers/Http/WorkspaceController.js index 7be0e5b..cbb6873 100644 --- a/app/Controllers/Http/WorkspaceController.js +++ b/app/Controllers/Http/WorkspaceController.js | |||
@@ -73,7 +73,7 @@ class WorkspaceController { | |||
73 | 73 | ||
74 | // Validate user input | 74 | // Validate user input |
75 | const validation = await validateAll(request.all(), { | 75 | const validation = await validateAll(request.all(), { |
76 | name: 'required|alpha', | 76 | name: 'required', |
77 | services: 'required|array', | 77 | services: 'required|array', |
78 | }); | 78 | }); |
79 | if (validation.fails()) { | 79 | if (validation.fails()) { |
@@ -124,12 +124,12 @@ class WorkspaceController { | |||
124 | } | 124 | } |
125 | 125 | ||
126 | // Validate user input | 126 | // Validate user input |
127 | const validation = await validateAll(request.all(), { | 127 | const validation = await validateAll(params, { |
128 | id: 'required', | 128 | id: 'required', |
129 | }); | 129 | }); |
130 | if (validation.fails()) { | 130 | if (validation.fails()) { |
131 | return response.status(401).send({ | 131 | return response.status(401).send({ |
132 | message: 'Invalid POST arguments', | 132 | message: 'Invalid arguments', |
133 | messages: validation.messages(), | 133 | messages: validation.messages(), |
134 | status: 401, | 134 | status: 401, |
135 | }); | 135 | }); |