Skip to content

Commit

Permalink
Ref search tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlopezinc committed Nov 3, 2023
1 parent a447162 commit c27d0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Repositories/TagRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function search(string $tag, int $userID, int $limit): Collection
{
return Model::query()
->join('taggables', 'tag_id', '=', 'tags.id')
->where('tags.name', 'LIKE', "%$tag%")
->where('tags.name', 'LIKE', "$tag%")
->whereExists(function (&$query) use ($userID) {
$query = Bookmark::query()
->select('id')
Expand Down

0 comments on commit c27d0b4

Please sign in to comment.