aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-21 10:10:40 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-21 10:10:40 +0200
commit8962fb26c6116e7530250c72a64a24daa62ba5f2 (patch)
tree1027c3f83af415ddabbf5a8800099651af248f2d /app
parentFix update settings response (diff)
downloadferdium-server-8962fb26c6116e7530250c72a64a24daa62ba5f2.tar.gz
ferdium-server-8962fb26c6116e7530250c72a64a24daa62ba5f2.tar.zst
ferdium-server-8962fb26c6116e7530250c72a64a24daa62ba5f2.zip
Fix #8
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/WorkspaceController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/Http/WorkspaceController.js b/app/Controllers/Http/WorkspaceController.js
index 45ed6cc..dc02e44 100644
--- a/app/Controllers/Http/WorkspaceController.js
+++ b/app/Controllers/Http/WorkspaceController.js
@@ -21,7 +21,7 @@ class WorkspaceController {
21 21
22 // Validate user input 22 // Validate user input
23 const validation = await validateAll(request.all(), { 23 const validation = await validateAll(request.all(), {
24 name: 'required|alpha', 24 name: 'required',
25 }); 25 });
26 if (validation.fails()) { 26 if (validation.fails()) {
27 return response.status(401).send({ 27 return response.status(401).send({
@@ -168,7 +168,7 @@ class WorkspaceController {
168 id: workspace.workspaceId, 168 id: workspace.workspaceId,
169 name: workspace.name, 169 name: workspace.name,
170 order: workspace.order, 170 order: workspace.order,
171 ...typeof workspace.services === "string" ? JSON.parse(workspace.services) : workspace.services, 171 services: typeof workspace.services === "string" ? JSON.parse(workspace.services) : workspace.services,
172 userId: auth.user.id, 172 userId: auth.user.id,
173 })); 173 }));
174 } 174 }