🐛 Ne télécharge pas les images quand il n'y en a pas
This commit is contained in:
parent
3a5a9e93c8
commit
a9ee66a2d4
@ -73,7 +73,9 @@ class Home extends Model implements Feedable
|
||||
{
|
||||
// Download images on creation
|
||||
static::created(static function ($home) {
|
||||
Artisan::call('app:downloadimage ' . $home->id);
|
||||
if (!empty($home->pictures)) {
|
||||
Artisan::call('app:downloadimage ' . $home->id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user