Skip to content

Commit

Permalink
Fix Smile-SA#3403 Argument #1 ($datetime) in IndexStatusProvider isRe…
Browse files Browse the repository at this point in the history
…building check
  • Loading branch information
Tomasz-Silpion authored Oct 9, 2024
1 parent 82f6dcb commit a94bf6f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ private function isRebuilding(string $indexName, $indexDate): bool
foreach (array_keys($this->workingIndexers) as $indexKey) {
if (strpos((string) $indexName, $indexKey) !== false) {
$today = new DateTime('now');
$day = new DateTime($indexDate);

return ($today == $day);
return ($today == $indexDate);
}
}
}
Expand Down

0 comments on commit a94bf6f

Please sign in to comment.