Update saving of cover value

This commit is contained in:
DariusIII
2018-11-26 20:42:30 +01:00
parent d38bd801e7
commit d20e488564
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -389,11 +389,13 @@ class Music
'year' => $year,
'genres_id' => (int) $mus['musicgenres_id'] === -1 ? 'null' : $mus['musicgenres_id'],
'tracks' => $mus['tracks'],
'cover' => $mus['cover'],
'created_at' => now(),
'updated_at' => now(),
]
);
$mus['cover'] = $ri->saveImage($musicId, $mus['coverurl'], $this->imgSavePath, 250, 250);
MusicInfo::query()->where('id', $musicId)->update(['cover' => $mus['cover']]);
} else {
$musicId = $check['id'];
$mus['cover'] = $ri->saveImage($musicId, $mus['coverurl'], $this->imgSavePath, 250, 250);
+1
View File
@@ -1,4 +1,5 @@
2018-11-26 DariusIII
* Chg: Update saving of cover value
* Chg: Update symfony components to their latest versions and laravel/framework to version 5.7.15
* Chg: Change Music lookup logic
* Fix: Fix typo in $this->coloCLi