@abtnode/core 1.6.5 → 1.6.6

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.
@@ -300,7 +300,10 @@ class RouterManager extends EventEmitter {
300
300
  await this.validateRouterConfig('updateRoutingRule', { id, rule });
301
301
 
302
302
  // update rules
303
- const newRules = [...dbSite.rules.filter((x) => x.groupId !== rule.id), ...(await this.getRules(rule))];
303
+ const newRules = [
304
+ ...dbSite.rules.filter((x) => x.groupId !== rule.id || x.id !== rule.id), // 有些路由没有 rule.groupId
305
+ ...(await this.getRules(rule)),
306
+ ];
304
307
 
305
308
  const updateResult = await states.site.update({ _id: id }, { $set: { rules: newRules } });
306
309
  logger.info('update result', { updateResult });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.6.5",
6
+ "version": "1.6.6",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,20 +19,20 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@abtnode/constant": "1.6.5",
23
- "@abtnode/cron": "1.6.5",
24
- "@abtnode/logger": "1.6.5",
25
- "@abtnode/queue": "1.6.5",
26
- "@abtnode/rbac": "1.6.5",
27
- "@abtnode/router-provider": "1.6.5",
28
- "@abtnode/static-server": "1.6.5",
29
- "@abtnode/timemachine": "1.6.5",
30
- "@abtnode/util": "1.6.5",
22
+ "@abtnode/constant": "1.6.6",
23
+ "@abtnode/cron": "1.6.6",
24
+ "@abtnode/logger": "1.6.6",
25
+ "@abtnode/queue": "1.6.6",
26
+ "@abtnode/rbac": "1.6.6",
27
+ "@abtnode/router-provider": "1.6.6",
28
+ "@abtnode/static-server": "1.6.6",
29
+ "@abtnode/timemachine": "1.6.6",
30
+ "@abtnode/util": "1.6.6",
31
31
  "@arcblock/did": "^1.13.77",
32
32
  "@arcblock/event-hub": "1.13.77",
33
33
  "@arcblock/pm2-events": "^0.0.5",
34
34
  "@arcblock/vc": "^1.13.77",
35
- "@blocklet/meta": "1.6.5",
35
+ "@blocklet/meta": "1.6.6",
36
36
  "@fidm/x509": "^1.2.1",
37
37
  "@nedb/core": "^1.2.2",
38
38
  "@nedb/multi": "^1.2.2",
@@ -73,5 +73,5 @@
73
73
  "express": "^4.17.1",
74
74
  "jest": "^27.3.1"
75
75
  },
76
- "gitHead": "59da906682f8122797a932640aebbad5a30dfcc3"
76
+ "gitHead": "59b5e0b6f2f0e8e27aa4a50722866beda6f91b84"
77
77
  }