Close recovered Shopify events already imported
This commit is contained in:
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') {
|
||||
$counters['already_imported']++;
|
||||
if (!$dryRun && isset($recoverySet[(string) $summaryOrder['id']])) {
|
||||
shopify_delta_mark_order_events_processed($pdo, (string) $summaryOrder['id']);
|
||||
}
|
||||
} else {
|
||||
$counters['handed_off']++;
|
||||
if (!$dryRun) {
|
||||
|
||||
Reference in new issue
Block a user