Skip to content

Commit

Permalink
Fix paybis timeout
Browse files Browse the repository at this point in the history
Only roll back 7 days. 30 days takes longer than 30m to query which times out the plugin
  • Loading branch information
paullinator committed Oct 11, 2024
1 parent 4be79b7 commit 016b2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partners/paybis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 016b2da

Please sign in to comment.