diff --git a/Changelog b/Changelog index d74f4e5b2..669387afd 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-04-25 DariusIII + * Chg: Update query in getVideoById function in Video class * Fix: Fix typo in column name in Releases tvSearch function * Fix: Fix XXX list view * Fix: Fix admin predb search diff --git a/app/Models/Video.php b/app/Models/Video.php index 23f206786..986f53c19 100644 --- a/app/Models/Video.php +++ b/app/Models/Video.php @@ -51,15 +51,16 @@ class Video extends Model * * * @param $id - * @return array + * + * @return \Illuminate\Database\Eloquent\Model|null|static */ - public static function getByVideoID($id): array + public static function getByVideoID($id) { return self::query() + ->select(['videos.*', 'tv_info.summary', 'tv_info.publisher', 'tv_info.image']) ->where('videos.id', $id) ->join('tv_info', 'videos.id', '=', 'tv_info.videos_id') - ->first(['videos.*', 'tv_info.summary', 'tv_info.publisher', 'tv_info.image']) - ->toArray(); + ->first(); } /**