ix error on details page when there are comments for the release

This commit is contained in:
DariusIII
2018-01-29 15:38:59 +01:00
parent f469948fa3
commit e4d2fcdfc0
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-01-29 DariusIII
* Fix: Fix error on details page when there are comments for the release
* Chg: Update migration files to include foreign keys
* Chg: Remove partitions from releases table, add foreign keys, update usage
* Chg: Check for null release date in games
+2 -2
View File
@@ -47,11 +47,11 @@ class ReleaseComment extends Model
/**
* @param $id
* @return \Illuminate\Database\Eloquent\Collection|static[]
* @return array
*/
public static function getComments($id)
{
return self::query()->where('releases_id', $id)->orderBy('created_at', 'desc')->get();
return self::query()->where('releases_id', $id)->orderBy('created_at', 'desc')->get()->toArray();
}
/**