From 016b2daffc05ebe3b532a0b77dd94d83ec64d4ce Mon Sep 17 00:00:00 2001 From: Paul Puey Date: Tue, 8 Oct 2024 12:47:50 -0700 Subject: [PATCH] Fix paybis timeout Only roll back 7 days. 30 days takes longer than 30m to query which times out the plugin --- src/partners/paybis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partners/paybis.ts b/src/partners/paybis.ts index 0b55082..7e921b5 100644 --- a/src/partners/paybis.ts +++ b/src/partners/paybis.ts @@ -130,7 +130,7 @@ const QUERY_LIMIT_TXS = 50 * How far to rollback from the last successful query * date when starting a new query */ -const QUERY_LOOKBACK = 1000 * 60 * 60 * 24 * 30 // 30 days +const QUERY_LOOKBACK = 1000 * 60 * 60 * 24 * 7 // 30 days /** Time period to query per loop */ const QUERY_TIME_BLOCK_MS = QUERY_LOOKBACK