We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10704b7 commit 7f7d24dCopy full SHA for 7f7d24d
app/Console/Commands/SyncArticleImages.php
@@ -28,14 +28,8 @@ public function handle(): void
28
$article->hero_image_url = $imageData['image_url'];
29
$article->hero_image_author_name = $imageData['author_name'];
30
$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;
+ $article->save();
36
}
37
-
38
- $article->save();
39
});
40
41
0 commit comments