fix: show names in admin tag panel
This commit is contained in:
@@ -59,11 +59,8 @@ public class TagController {
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
public List<String> searchTags(@RequestParam(defaultValue = "") String query) {
|
||||
return tagRepository.findByNameContainingIgnoreCase(query)
|
||||
.stream()
|
||||
.map(Tag::getName)
|
||||
.toList();
|
||||
public List<Tag> searchTags(@RequestParam(defaultValue = "") String query) {
|
||||
return tagRepository.findByNameContainingIgnoreCase(query);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user