@rotorsoft/act 1.32.9 → 1.32.10
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/dist/.tsbuildinfo +1 -1
- package/dist/@types/builders/reaction-builder.d.ts.map +1 -1
- package/dist/@types/builders/state-builder.d.ts +2 -2
- package/dist/@types/types/action.d.ts +2 -2
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3432,9 +3432,13 @@ function build_handle(deps) {
|
|
|
3432
3432
|
function build_handle_batch(logger) {
|
|
3433
3433
|
return async (lease, payloads, batchHandler) => {
|
|
3434
3434
|
const stream = lease.stream;
|
|
3435
|
-
const events =
|
|
3436
|
-
|
|
3437
|
-
)
|
|
3435
|
+
const events = [];
|
|
3436
|
+
const seen = /* @__PURE__ */ new Set();
|
|
3437
|
+
for (const p of payloads) {
|
|
3438
|
+
if (seen.has(p.event.id)) continue;
|
|
3439
|
+
seen.add(p.event.id);
|
|
3440
|
+
events.push(p.event);
|
|
3441
|
+
}
|
|
3438
3442
|
const options = payloads[0].options;
|
|
3439
3443
|
if (lease.retry > 0)
|
|
3440
3444
|
logger.warn(`Retrying batch ${stream}@${events[0].id} (${lease.retry}).`);
|