shuttlepro-shared 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,8 +28,9 @@ const createWorkspace = async (data) => {
|
|
|
28
28
|
|
|
29
29
|
const findWorkspaceById = async (id, select = []) => {
|
|
30
30
|
const workspaces = await getCachedWorkspaces();
|
|
31
|
+
console.log(workspaces, "workspaces");
|
|
31
32
|
const workspace = workspaces.find((ws) => ws._id.toString() === id) || null;
|
|
32
|
-
|
|
33
|
+
console.log(workspace, "workspace");
|
|
33
34
|
if (workspace && select.length > 0) {
|
|
34
35
|
return select.reduce((result, field) => {
|
|
35
36
|
if (workspace[field] !== undefined) {
|
|
@@ -38,7 +39,6 @@ const findWorkspaceById = async (id, select = []) => {
|
|
|
38
39
|
return result;
|
|
39
40
|
}, {});
|
|
40
41
|
}
|
|
41
|
-
|
|
42
42
|
return workspace;
|
|
43
43
|
};
|
|
44
44
|
|