diff --git a/server/endpoints/api/workspace/index.js b/server/endpoints/api/workspace/index.js index 12260287..fbfdde88 100644 --- a/server/endpoints/api/workspace/index.js +++ b/server/endpoints/api/workspace/index.js @@ -436,9 +436,9 @@ function apiWorkspaceEndpoints(app) { await Document.removeDocuments(currWorkspace, deletes); await Document.addDocuments(currWorkspace, adds); - const updatedWorkspace = await Workspace.get( - `id = ${Number(currWorkspace.id)}` - ); + const updatedWorkspace = await Workspace.get({ + id: Number(currWorkspace.id), + }); response.status(200).json({ workspace: updatedWorkspace }); } catch (e) { console.log(e.message, e);