Skip to content

Commit

Permalink
Tweak mcstatus when loading data
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemd24 committed Mar 8, 2024
1 parent 6dc97a9 commit 6b7a614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DB/ProductFeedQueryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function get( WP_REST_Request $request ): array {

// If the refresh_status_data_job is scheduled, we don't know the status yet as it is being refreshed.
if ( $refresh_status_data_job && $refresh_status_data_job->is_scheduled() ) {
$mc_status = '-';
$mc_status = null;
}

$products[ $id ] = [
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DB/ProductFeedQueryHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function test_get_product_feed_merchant_center_while_the_job_is_scheduled
'id' => $product->get_id(),
'title' => $product->get_name(),
'visible' => true,
'status' => '-',
'status' => null,
'image_url' => wp_get_attachment_image_url( $product->get_image_id(), 'full' ),
'price' => $product->get_price(),
'errors' => [],
Expand Down

0 comments on commit 6b7a614

Please sign in to comment.