Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Jul 22, 2024
1 parent 86ddb3e commit 41bee18
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Http/Controllers/TagsAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,12 @@ public function destroy(TagRemoveRequest $tagRemoveRequest): JsonResponse
public function unique(Request $request): JsonResponse
{
$tags = $this->tagRepository->unique();
return $tags->count() > 0 ?
$this->sendResponse($tags, 'Tags unique fetched successfully') :
$this->sendError('Tags not found', 404) ;
return $this->sendResponse($tags, 'Tags unique fetched successfully');
}

public function uniqueAdmin(Request $request): JsonResponse
{
$tags = $this->tagRepository->unique();
return $tags->count() > 0 ?
$this->sendResponse($tags, 'Tags unique fetched successfully') :
$this->sendError('Tags not found', 404) ;
return $this->sendResponse($tags, 'Tags unique fetched successfully');
}
}

0 comments on commit 41bee18

Please sign in to comment.