@agentbadge/database 0.6.11 → 0.6.13
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.
|
@@ -315,7 +315,7 @@ export class PaymentAttemptRepository {
|
|
|
315
315
|
const out = [];
|
|
316
316
|
for (const status of TERMINAL_ATTEMPT_STATUSES) {
|
|
317
317
|
const plan = this.db.raw
|
|
318
|
-
.sql `SELECT "id","paymentId","provider","network","token","amount","currency","status","providerReference","transactionHash","expiresAtMs","confirmedAtMs","payload","createdAt","updatedAt" FROM "paymentAttempt" WHERE "status" = ${param(status, { codecId: "pg/text@1" })} AND "updatedAt" >= to_timestamp(${param(sinceMs, { codecId: "pg/int8@1" })} / 1000.0) ORDER BY "updatedAt" ASC, "id" ASC`
|
|
318
|
+
.sql `SELECT "id","paymentId","provider","network","token","amount","currency","status","providerReference","transactionHash","expiresAtMs","confirmedAtMs","payload","createdAt","updatedAt" FROM "paymentAttempt" WHERE "status" = ${param(status, { codecId: "pg/text@1" })} AND "updatedAt" >= to_timestamp(${param(BigInt(sinceMs), { codecId: "pg/int8@1" })} / 1000.0) ORDER BY "updatedAt" ASC, "id" ASC`
|
|
319
319
|
.returnsRow(ATTEMPT_ROW_SPEC)
|
|
320
320
|
.build();
|
|
321
321
|
const rows = await this.db.runtime().query(plan);
|
package/package.json
CHANGED