diff options
author | vantezzen <hello@vantezzen.io> | 2019-10-17 21:45:24 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-10-17 21:45:24 +0200 |
commit | ad97ba68b004b746d1e78cedc87a2dab9b93d3c5 (patch) | |
tree | d6a57868a1bb4aa23c13fac0f2d47d7fc8d9c250 /app/Controllers/Http/WorkspaceController.js | |
parent | Add announcements (diff) | |
download | ferdium-server-ad97ba68b004b746d1e78cedc87a2dab9b93d3c5.tar.gz ferdium-server-ad97ba68b004b746d1e78cedc87a2dab9b93d3c5.tar.zst ferdium-server-ad97ba68b004b746d1e78cedc87a2dab9b93d3c5.zip |
Fix compatability to Postgresql databases
Diffstat (limited to 'app/Controllers/Http/WorkspaceController.js')
-rw-r--r-- | app/Controllers/Http/WorkspaceController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/Http/WorkspaceController.js b/app/Controllers/Http/WorkspaceController.js index ecf79af..45ed6cc 100644 --- a/app/Controllers/Http/WorkspaceController.js +++ b/app/Controllers/Http/WorkspaceController.js | |||
@@ -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 | services: JSON.parse(workspace.services), | 171 | ...typeof workspace.services === "string" ? JSON.parse(workspace.services) : workspace.services, |
172 | userId: auth.user.id, | 172 | userId: auth.user.id, |
173 | })); | 173 | })); |
174 | } | 174 | } |