@nocobase/server 2.1.37 → 2.1.38

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.
Files changed (2) hide show
  1. package/lib/event-queue.js +3 -1
  2. package/package.json +17 -17
@@ -84,7 +84,9 @@ const _MemoryEventQueueAdapter = class _MemoryEventQueueAdapter {
84
84
  return;
85
85
  }
86
86
  const reading = this.reading.get(channel) || [];
87
- const count = (event.concurrency || QUEUE_DEFAULT_CONCURRENCY) - reading.length;
87
+ const queue = this.queues.get(channel);
88
+ const concurrency = event.concurrency ?? QUEUE_DEFAULT_CONCURRENCY;
89
+ const count = concurrency <= 0 ? (queue == null ? void 0 : queue.length) || 0 : concurrency - reading.length;
88
90
  if (count <= 0) {
89
91
  return;
90
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "2.1.37",
3
+ "version": "2.1.38",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -10,21 +10,21 @@
10
10
  "@koa/cors": "^5.0.0",
11
11
  "@koa/multer": "^3.1.0",
12
12
  "@koa/router": "^13.1.0",
13
- "@nocobase/acl": "2.1.37",
14
- "@nocobase/actions": "2.1.37",
15
- "@nocobase/ai": "2.1.37",
16
- "@nocobase/auth": "2.1.37",
17
- "@nocobase/cache": "2.1.37",
18
- "@nocobase/data-source-manager": "2.1.37",
19
- "@nocobase/database": "2.1.37",
20
- "@nocobase/evaluators": "2.1.37",
21
- "@nocobase/lock-manager": "2.1.37",
22
- "@nocobase/logger": "2.1.37",
23
- "@nocobase/resourcer": "2.1.37",
24
- "@nocobase/sdk": "2.1.37",
25
- "@nocobase/snowflake-id": "2.1.37",
26
- "@nocobase/telemetry": "2.1.37",
27
- "@nocobase/utils": "2.1.37",
13
+ "@nocobase/acl": "2.1.38",
14
+ "@nocobase/actions": "2.1.38",
15
+ "@nocobase/ai": "2.1.38",
16
+ "@nocobase/auth": "2.1.38",
17
+ "@nocobase/cache": "2.1.38",
18
+ "@nocobase/data-source-manager": "2.1.38",
19
+ "@nocobase/database": "2.1.38",
20
+ "@nocobase/evaluators": "2.1.38",
21
+ "@nocobase/lock-manager": "2.1.38",
22
+ "@nocobase/logger": "2.1.38",
23
+ "@nocobase/resourcer": "2.1.38",
24
+ "@nocobase/sdk": "2.1.38",
25
+ "@nocobase/snowflake-id": "2.1.38",
26
+ "@nocobase/telemetry": "2.1.38",
27
+ "@nocobase/utils": "2.1.38",
28
28
  "@types/decompress": "4.2.7",
29
29
  "@types/ini": "^1.3.31",
30
30
  "@types/koa-send": "^4.1.3",
@@ -61,5 +61,5 @@
61
61
  "@types/serve-handler": "^6.1.1",
62
62
  "@types/ws": "^8.5.5"
63
63
  },
64
- "gitHead": "a0c3201363ae028058845af0176ee902a9eeb3e1"
64
+ "gitHead": "cf73a1ede7f46029428d3ed143af2e5dc4f035e6"
65
65
  }