Skip to content

Commit

Permalink
fix(commands): use whereNotNull for subtype images in image hash fix …
Browse files Browse the repository at this point in the history
…command (#1156)
  • Loading branch information
SpeedyD authored Dec 27, 2024
1 parent bb73c48 commit 650009b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/FixImageHashes.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function handle() {
$images = $images->concat(Rarity::where('has_image', 1)->whereNotNull('hash')->get());
$images = $images->concat(Shop::where('has_image', 1)->whereNotNull('hash')->get());
$images = $images->concat(Species::where('has_image', 1)->whereNotNull('hash')->get());
$images = $images->concat(Subtype::where('has_image', 1)->whereNull('hash')->get());
$images = $images->concat(Subtype::where('has_image', 1)->whereNotNull('hash')->get());

if ($images->count()) {
$this->line('Updating images...');
Expand Down

0 comments on commit 650009b

Please sign in to comment.