aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
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 }