Skip to content

Commit 2111650

Browse files
authored
Fix product sync pagination by adding group parameter (#4236)
* Add a group to the product sync so all pages are queued * Update deps
1 parent fda7289 commit 2111650

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pay-with-flex.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Flex HSA/FSA Payments
44
* Description: Accept HSA/FSA payments directly in the checkout flow.
5-
* Version: 3.1.12
5+
* Version: 3.1.13
66
* Plugin URI: https://wordpress.org/plugins/pay-with-flex/
77
* Author: Flex
88
* Author URI: https://withflex.com/
@@ -708,6 +708,7 @@ function flex_product_sync_spawn( int $page, int $retries = 0 ): void {
708708
flex_enqueue_async_action(
709709
hook: 'flex_product_sync',
710710
args: array( $page, $retries ),
711+
group: 'page-' . $page,
711712
retries: $retries,
712713
);
713714
}

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: withflex, davidbarratt
33
Tags: hsa, fsa, payments, woocommerce
44
Requires at least: 6.8
55
Tested up to: 6.8
6-
Stable tag: 3.1.12
6+
Stable tag: 3.1.13
77
Requires PHP: 8.1
88
License: GPLv3 or later
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -55,6 +55,9 @@ Flex makes this process simple by offering asynchronous telehealth visits direct
5555

5656
== Changelog ==
5757

58+
= 3.1.13 =
59+
* Fixed a bug that prevented pages >1 from being synced on plugin or payment method activation.
60+
5861
= 3.1.12 =
5962
* Fixed a bug that prevented products and prices from being created if they already exist under a different account.
6063
* Changed the plugin and payment method activation behavior. Product & Price syncing is now spawned asyncoursly which significantly improves the plugin activation speed.

0 commit comments

Comments
 (0)