mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
ix error on details page when there are comments for the release
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user