Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mycloudnexus/kraken into fix/user-m…
Browse files Browse the repository at this point in the history
…gmt-list-filter
  • Loading branch information
xuelianhan007 committed Dec 3, 2024
2 parents 0708bb7 + 189f7a1 commit 1a77341
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.util.UriBuilder;

@Service
@Slf4j
Expand Down Expand Up @@ -149,8 +148,11 @@ private List<PushExternalSystemPayload> pushLogsInBatches(
}

private HttpResponse<String> sendLogsToExternalSystem(ClientEvent payload) {
return blockCurl(
HttpMethod.POST, UriBuilder::build, payload, new ParameterizedTypeReference<>() {});
return curl(
HttpMethod.POST,
getAppProperty().getMgmtPlane().getMgmtPushEventEndpoint(),
payload,
new ParameterizedTypeReference<>() {});
}

private List<ComposedHttpRequest> getComposedHttpRequests(Stream<ApiActivityLogEntity> logs) {
Expand Down

0 comments on commit 1a77341

Please sign in to comment.