Skip to content

Commit

Permalink
fix: save subscription update
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenn00dle committed Dec 6, 2024
1 parent 247838a commit e84ebeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/cli/class-woocommerce-subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function migrate_expired_subscriptions( $args, $assoc_args ) {
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->save();
}
++$updated;
}
Expand Down

0 comments on commit e84ebeb

Please sign in to comment.