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 c83c288 commit caf14a1Copy full SHA for caf14a1
src/models/user.ts
@@ -370,8 +370,13 @@ export default class UserModel extends AbstractModel<UserDBScheme> implements Us
370
public async getWorkspacesIds(ids: (string | ObjectId)[] = []): Promise<string[]> {
371
const res = [];
372
373
+ if (ids.length === 0) {
374
+ return Object.keys(this.workspaces);
375
+ }
376
+
377
for (const id of ids) {
378
const workspaceId = id.toString();
379
+ console.log(workspaceId);
380
const workspace = this.workspaces[workspaceId];
381
382
if (workspace && workspace.isPending !== true) {
0 commit comments