Skip to content

Commit

Permalink
Move the searchGroups method from UserService to GroupService
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChenX committed Apr 17, 2024
1 parent 72abdaf commit cde5a94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions turms-client-cpp/src/turms/client/service/group_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ auto GroupService::queryGroups(const std::unordered_set<int64_t>& groupIds,
});
}

auto UserService::searchGroups(const std::string& name,
bool highlight = false,
const boost::optional<int>& skip = boost::none,
const boost::optional<int>& limit = boost::none)
auto GroupService::searchGroups(const std::string& name,
bool highlight = false,
const boost::optional<int>& skip = boost::none,
const boost::optional<int>& limit = boost::none)
-> boost::future<Response<std::vector<Group>>> {
if (name.empty()) {
return boost::make_ready_future<>(Response<Group>::emptyList());
Expand Down

0 comments on commit cde5a94

Please sign in to comment.