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
+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();
}
/**