Skip to content

Commit

Permalink
Remove with pivot value from distinct viewers (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick authored Mar 14, 2021
1 parent 67367d1 commit 7023e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/Viewable.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function viewers(): MorphToMany
static function (MorphToMany $relation) {
$relation->distinct($relation->getRelated()->qualifyColumn($relation->getRelatedKeyName()));
}
)->withTimestamps();
);
}

public function viewsCount(): int
Expand Down

0 comments on commit 7023e4c

Please sign in to comment.