We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a240e commit 8542830Copy full SHA for 8542830
1 file changed
src/models/user.ts
@@ -371,9 +371,16 @@ export default class UserModel extends AbstractModel<UserDBScheme> implements Us
371
const res = [];
372
373
if (ids.length === 0) {
374
+ if (!this.workspaces) {
375
+ return [];
376
+ }
377
return Object.keys(this.workspaces);
378
}
379
380
381
382
383
+
384
for (const id of ids) {
385
const workspaceId = id.toString();
386
const workspace = this.workspaces[workspaceId];
0 commit comments