Skip to content

Commit

Permalink
Minor fix for CPT version (which only takes order differences into ac…
Browse files Browse the repository at this point in the history
…count)
  • Loading branch information
jorgeatorres committed Mar 12, 2024
1 parent faa184e commit e3222ac
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -384,9 +384,9 @@ public function backfill_order_to_datastore( int $order_id, string $source_data_
);

$dest_order->set_props( $new_values );
$dest_order->apply_changes();

if ( 'hpos' === $destination_data_store ) {
$dest_order->apply_changes();
$limit_cb = function( $rows, $order ) use ( $dest_order, $fields ) {
if ( $dest_order->get_id() === $order->get_id() ) {
$rows = $this->limit_hpos_update_to_props( $rows, $fields['props'] );
Expand Down

0 comments on commit e3222ac

Please sign in to comment.