Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mycloudnexus/kraken into feat/suppo…
Browse files Browse the repository at this point in the history
…rt-array-to-array
  • Loading branch information
xuelianhan007 committed Dec 3, 2024
2 parents eb7cbdc + 189f7a1 commit def7b58
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 def7b58

Please sign in to comment.