Skip to content

Commit

Permalink
fix: fix subscription update order
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenn00dle committed Dec 6, 2024
1 parent e84ebeb commit efdf5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/cli/class-woocommerce-subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public function migrate_expired_subscriptions( $args, $assoc_args ) {
WP_CLI::line( 'Updating subscription status to expired...' );
}
if ( self::$live ) {
$subscription->set_end_date( $last_retry->get_date() );
$subscription->update_status( 'expired', __( 'Subscription status updated by Newspack CLI command.', 'newspack-plugin' ) );
$subscription->set_end_date( $last_retry->get_date() );
$subscription->save();
}
++$updated;
Expand Down

0 comments on commit efdf5a7

Please sign in to comment.