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 26a240e commit d0d05baCopy full SHA for d0d05ba
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "hawk.api",
3
- "version": "1.2.28",
+ "version": "1.2.29",
4
"main": "index.ts",
5
"license": "BUSL-1.1",
6
"scripts": {
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