From 293ac2b82d5f73e074872e1b46a2e25feffeea7f Mon Sep 17 00:00:00 2001 From: overtrue Date: Mon, 12 Jun 2023 09:46:18 +0800 Subject: [PATCH] Fix ci error --- src/Traits/Liker.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Traits/Liker.php b/src/Traits/Liker.php index 3dd892a..846ab25 100644 --- a/src/Traits/Liker.php +++ b/src/Traits/Liker.php @@ -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