@rotorsoft/act-pg 1.17.1 → 1.18.0
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/postgres-store.d.ts.map +1 -1
- package/dist/index.cjs +0 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1505,12 +1505,6 @@ var PostgresStore = class {
|
|
|
1505
1505
|
this._fqt
|
|
1506
1506
|
]);
|
|
1507
1507
|
const result = /* @__PURE__ */ new Map();
|
|
1508
|
-
const retired = full.filter((t) => t.snapshot === void 0).map((t) => t.stream);
|
|
1509
|
-
if (retired.length) {
|
|
1510
|
-
await client.query(`DELETE FROM ${this._fqs} WHERE stream = ANY($1)`, [
|
|
1511
|
-
retired
|
|
1512
|
-
]);
|
|
1513
|
-
}
|
|
1514
1508
|
for (const { stream, snapshot, meta } of full) {
|
|
1515
1509
|
const { rowCount } = await client.query(
|
|
1516
1510
|
`DELETE FROM ${this._fqt} WHERE stream = $1`,
|