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.
2 parents c83c288 + b48a26e commit 17be2b0Copy full SHA for 17be2b0
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "hawk.api",
3
- "version": "1.2.17",
+ "version": "1.2.18",
4
"main": "index.ts",
5
"license": "BUSL-1.1",
6
"scripts": {
src/models/user.ts
@@ -370,6 +370,10 @@ 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
const workspace = this.workspaces[workspaceId];
0 commit comments