Skip to content

Commit

Permalink
Fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jun 12, 2023
1 parent 7b48bfd commit 293ac2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Traits/Liker.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public function toggleLike(Model $object)
public function hasLiked(Model $object): bool
{
return ($this->relationLoaded('likes') ? $this->likes : $this->likes())
->where('likeable_id', $object->getKey())
->where('likeable_type', $object->getMorphClass())
->count() > 0;
->where('likeable_id', $object->getKey())
->where('likeable_type', $object->getMorphClass())
->count() > 0;
}

public function likes(): HasMany
Expand Down

0 comments on commit 293ac2b

Please sign in to comment.