@steedos/service-objectql 2.7.0-beta.2 → 2.7.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-objectql",
3
- "version": "2.7.0-beta.2",
3
+ "version": "2.7.0-beta.3",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -13,8 +13,8 @@
13
13
  "description": "steedos package",
14
14
  "repository": {},
15
15
  "license": "MIT",
16
- "gitHead": "09bc89238d07c7abc29e163c73dc85f0bf8b0402",
16
+ "gitHead": "753d7fa0840e6e254423eafbdd132ec10ca4072e",
17
17
  "dependencies": {
18
- "@steedos/objectql": "2.7.0-beta.2"
18
+ "@steedos/objectql": "2.7.0-beta.3"
19
19
  }
20
20
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2023-03-23 15:12:14
4
4
  * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2024-02-27 15:21:53
5
+ * @LastEditTime: 2024-03-11 14:28:56
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -629,6 +629,9 @@ module.exports = {
629
629
  return doc;
630
630
  },
631
631
  getPrimarySpaceId: async function () {
632
+ if(this.primarySpaceId){
633
+ return this.primarySpaceId;
634
+ }
632
635
  const steedosConfig = objectql.getSteedosConfig();
633
636
  let spaceId;
634
637
  if (steedosConfig && steedosConfig.tenant && steedosConfig.tenant._id) {
@@ -646,7 +649,8 @@ module.exports = {
646
649
  }
647
650
  }
648
651
  }
649
- return spaceId
652
+ this.primarySpaceId = spaceId
653
+ return this.primarySpaceId
650
654
  }
651
655
  },
652
656