Skip to content

Commit

Permalink
fix(esp-sync): broken CLI sync command
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Feb 18, 2025
1 parent 8713ed8 commit 6a3db27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions includes/cli/class-ras-esp-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ private static function sync_contacts( $config ) {
$result->get_error_message()
)
);
} elseif ( ! empty( static::$results ) ) {
static::$results['processed']++;
}
}
}
Expand Down
5 changes: 1 addition & 4 deletions includes/reader-activation/sync/class-esp-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,9 @@ public static function sync_contact( $user_id_or_order, $is_dry_run = false ) {
// Translators: %1$s is the status and %2$s is the contact's email address.
__( '%1$s contact data for %2$s.', 'newspack-plugin' ),
$is_dry_run ? __( 'Would sync', 'newspack-plugin' ) : __( 'Synced', 'newspack-plugin' ),
$customer->get_email()
$contact['email']
)
);
if ( ! empty( static::$results ) ) {
static::$results['processed']++;
}
}

return $result;
Expand Down

0 comments on commit 6a3db27

Please sign in to comment.