fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -45,7 +45,7 @@ class OpportunityImageProcessor
|
||||
$previousDerivatives = $previousPayload['derivatives'] ?? [];
|
||||
$expectedWidths = array_unique(array_map(fn ($width) => min($width, $size[0]), [320, 640, 1280]));
|
||||
if (($previousPayload['derived_from_sha256'] ?? null) === trim($doc->sha256)
|
||||
&& array_values(array_column($previousDerivatives, 'width')) === array_values($expectedWidths)) {
|
||||
&& array_column($previousDerivatives, 'width') === array_values($expectedWidths)) {
|
||||
$reusable = true;
|
||||
$retry = [];
|
||||
foreach ($previousDerivatives as $derivative) {
|
||||
@@ -65,6 +65,7 @@ class OpportunityImageProcessor
|
||||
}
|
||||
if ($reusable) {
|
||||
$documents = $retry;
|
||||
|
||||
return; // Retry scans of the same streams, without new files, versions or audit decisions.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user