Enforce Shopify order identifier handoff
This commit is contained in:
@@ -126,8 +126,13 @@ function run_shopify_delta(array $env, PDO $pdo, string $cutoff, bool $dryRun):
|
||||
}
|
||||
|
||||
try {
|
||||
$order = shopify_delta_load_order($env, (string) $summaryOrder['id']);
|
||||
$result = project_shopify_order($pdo, $order, $env, $dryRun);
|
||||
$orderGid = (string) $summaryOrder['id'];
|
||||
$result = project_shopify_order(
|
||||
$pdo,
|
||||
$orderGid,
|
||||
static fn (string $gid): array => shopify_delta_load_order($env, $gid),
|
||||
$dryRun
|
||||
);
|
||||
if (($result['status'] ?? '') === 'already_imported') {
|
||||
$counters['already_imported']++;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user