aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-01-28 12:26:08 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-01-28 12:26:08 +0100
commit6e2769ae84462158b485abea5e09c810096843e4 (patch)
tree6c1f5b77b53d1fac457c7a10355c844eb6eac375 /app
parentUpdate demo url (diff)
downloadferdium-server-6e2769ae84462158b485abea5e09c810096843e4.tar.gz
ferdium-server-6e2769ae84462158b485abea5e09c810096843e4.tar.zst
ferdium-server-6e2769ae84462158b485abea5e09c810096843e4.zip
getferdi/ferdi#294 Fix problem when removing workspaces
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/WorkspaceController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controllers/Http/WorkspaceController.js b/app/Controllers/Http/WorkspaceController.js
index dc02e44..a2200a9 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 });