Skip to content

Commit

Permalink
Merge pull request #4 from hamoda-dev/fix-follow-a-user
Browse files Browse the repository at this point in the history
FollowUserAction fixed, column didn't exist
  • Loading branch information
muhammadmp97 authored Sep 15, 2023
2 parents 7ae59cc + f63f6ef commit 57efea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/User/FollowUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function execute(User $follower, User $following): void
{
$userIsFollowed = $follower
->following()
->where('followed_id', $following->id)
->where('following_id', $following->id)
->exists();

if (! $userIsFollowed) {
Expand Down

0 comments on commit 57efea5

Please sign in to comment.