@rotorsoft/act 1.31.23 → 1.31.24
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/internal/correlate-cycle.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1700,7 +1700,7 @@ var CorrelateCycle = class {
|
|
|
1700
1700
|
const after = Math.max(this._checkpoint, query.after || -1);
|
|
1701
1701
|
const correlated = /* @__PURE__ */ new Map();
|
|
1702
1702
|
let last_id = after;
|
|
1703
|
-
await store().query(
|
|
1703
|
+
const found = await store().query(
|
|
1704
1704
|
(event) => {
|
|
1705
1705
|
last_id = event.id;
|
|
1706
1706
|
const register = this._registry.events[event.name];
|
|
@@ -1790,7 +1790,7 @@ var CorrelateCycle = class {
|
|
|
1790
1790
|
return { subscribed, last_id, marked, scanned: true };
|
|
1791
1791
|
}
|
|
1792
1792
|
this._checkpoint = last_id;
|
|
1793
|
-
this._armed =
|
|
1793
|
+
this._armed = found === query.limit;
|
|
1794
1794
|
return { subscribed: 0, last_id, marked: 0, scanned: true };
|
|
1795
1795
|
}
|
|
1796
1796
|
/**
|