Close recovered Shopify events already imported

This commit is contained in:
gitea_admin committed 2026-09-06 15:38:06 +02:00
1 parent ba796f0a3f
commit a526cb9f60
1 file changed
+3
@@ -209,6 +209,9 @@ function run_shopify_delta(array $env, PDO $pdo, string $cutoff, bool $dryRun, a
} }
if (($result['status'] ?? '') === 'already_imported') { if (($result['status'] ?? '') === 'already_imported') {
$counters['already_imported']++; $counters['already_imported']++;
if (!$dryRun && isset($recoverySet[(string) $summaryOrder['id']])) {
shopify_delta_mark_order_events_processed($pdo, (string) $summaryOrder['id']);
}
} else { } else {
$counters['handed_off']++; $counters['handed_off']++;
if (!$dryRun) { if (!$dryRun) {