We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9576e9a commit 785b4b0Copy full SHA for 785b4b0
src/modules/workspace/repositories/workspace.repository.ts
@@ -122,7 +122,7 @@ export class WorkspaceRepository {
122
.findOne({ _id: id });
123
// Check if workspace is restricted
124
if (!response) {
125
- return;
+ return response;
126
}
127
if (response?.isRestricted === true || response?.isFreezed === true) {
128
console.log(`Access denied: Workspace ${id} is restricted`);
@@ -141,7 +141,7 @@ export class WorkspaceRepository {
141
.find({ _id: { $in: IdArray } })
142
.toArray();
143
if (!response || response.length === 0) {
144
- return [];
145
146
// Filter out restricted workspaces
147
const filteredResponse = response.filter((workspace) => {
0 commit comments