Skip to content

Commit

Permalink
refactor(net): use /event/list for getting latest event list
Browse files Browse the repository at this point in the history
  • Loading branch information
Serein207 committed Oct 1, 2024
1 parent febfa85 commit 25f8926
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Infrastructure/Network/NetworkClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@ Task<Result<EventQueryRes>> NetworkClient::getActiveEventList(
Task<Result<EventQueryRes>> NetworkClient::getLatestEventList(
std::chrono::steady_clock::duration cacheTtl) {
#ifdef EVENTO_API_V1
auto result = co_await this->request<api::Evento>(http::verb::get,
endpoint("/event/newest"),
auto result = co_await this->request<api::Evento>(http::verb::post,
endpoint("/event/list",
{{"departmentId", ""},
{"typeId", ""},
{"time", ""}}),
{},
cacheTtl);
if (result.isErr())
Expand Down

0 comments on commit 25f8926

Please sign in to comment.