forked from eatvio/eatvio-infra
analysators added
This commit is contained in:
@@ -12,7 +12,7 @@ class RecipeCommentUpvote extends Model
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'recipe_comment_id',
|
||||
'type'
|
||||
'type',
|
||||
];
|
||||
|
||||
public function author()
|
||||
@@ -34,6 +34,4 @@ class RecipeCommentUpvote extends Model
|
||||
{
|
||||
return $query->where('recipe_comment_id', $comment->id)->where('type', 'downvote');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user