Skip to content

Commit 7f7d24d

Browse files
committed
wip
1 parent 10704b7 commit 7f7d24d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/Console/Commands/SyncArticleImages.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,8 @@ public function handle(): void
2828
$article->hero_image_url = $imageData['image_url'];
2929
$article->hero_image_author_name = $imageData['author_name'];
3030
$article->hero_image_author_url = $imageData['author_url'];
31-
} else {
32-
$article->hero_image_id = null;
33-
$article->hero_image_url = null;
34-
$article->hero_image_author_name = null;
35-
$article->hero_image_author_url = null;
31+
$article->save();
3632
}
37-
38-
$article->save();
3933
});
4034
});
4135
}

0 commit comments

Comments
 (0)