Skip to content

Commit 016b2da

Browse files
committed
Fix paybis timeout
Only roll back 7 days. 30 days takes longer than 30m to query which times out the plugin
1 parent 4be79b7 commit 016b2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partners/paybis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const QUERY_LIMIT_TXS = 50
130130
* How far to rollback from the last successful query
131131
* date when starting a new query
132132
*/
133-
const QUERY_LOOKBACK = 1000 * 60 * 60 * 24 * 30 // 30 days
133+
const QUERY_LOOKBACK = 1000 * 60 * 60 * 24 * 7 // 30 days
134134

135135
/** Time period to query per loop */
136136
const QUERY_TIME_BLOCK_MS = QUERY_LOOKBACK

0 commit comments

Comments
 (0)