Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couple bug fixes for ESP sync CLI command #3615

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions includes/cli/class-ras-esp-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ private static function sync_contacts( $config ) {
if ( \is_wp_error( $result ) ) {
static::log(
sprintf(
// Translators: $1$s is the contact's email address. %2$s is the error message.
__( 'Error syncing contact info for %1$s. %2$s' ),
$customer->get_email(),
// Translators: $1$s is the contact's user ID. %2$s is the error message.
__( 'Error syncing contact info for user ID %1$d. %2$s' ),
$user_id,
$result->get_error_message()
)
);
Expand Down Expand Up @@ -354,16 +354,16 @@ private static function get_batch_of_readers( $batch_size, $offset = 0 ) {
* [--active-only]
* : If passed, only sync users who have active subscriptions, otherwise resync all users.
*
* [--migrated-subscriptions=<stripe|piano-csv|strive-csv>]
* [--migrated-subscriptions=<stripe|piano-csv|stripe-csv>]
* : If passed, will only query for subscriptions that were migrated via the Newspack Subscription Migrations plugin using the Stripe/Piano CSV importers, or the legacy Stripe migrator. The Newspack Subscription Migrations plugin must be active to use this flag.
*
* [--subscription-ids=<id1,id2...>]
* [--subscription-ids=<id1,id2,etc>]
* : Comma-delimited list of subscription IDs. If passed, will only process those specific subscriptions.
*
* [--user-ids=<id1,id2...>]
* [--user-ids=<id1,id2,etc>]
* : Comma-delimited list of user IDs. If passed, will only process subscriptions associated with those specific users.
*
* [--order-ids=<id1,id2...>]
* [--order-ids=<id1,id2,etc>]
* : Comma-delimited list of order IDs. If passed, will only process subscriptions associated with those specific orders.
*
* [--batch-size=<number>]
Expand Down
Loading