Skip to content

Commit

Permalink
feat: 제발 한번만
Browse files Browse the repository at this point in the history
  • Loading branch information
coding-convention committed Sep 18, 2023
1 parent a2e06f2 commit d7cacdf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ private ResponseEntity<JsonNode> RequestGitHubAPIs(String uri) {

@Override
public Flux<ServerSentEvent<String>> RequestBuildAsync(BuildRequestDto request, String oauthId) {
logger.info("RequestBuildAsync");

WebClient webClient = WebClient.create();
Member member = memberRepository.findMemberByOauthId(oauthId);
this.token = member.getGithubAccessToken();
Expand All @@ -108,9 +110,11 @@ public Flux<ServerSentEvent<String>> RequestBuildAsync(BuildRequestDto request,
return sseFlux.map(response -> {
logger.info("Received SSE: " + response.event() + response.data());
if(response.event().equals("fail")) {
logger.info("#@#@#@#@#@ fail");
buildLog.setStatus(-1);
buildLogRepository.save(buildLog);
} else if(response.event().equals("success")) {
logger.info("#@#@#@#@#@ success");
buildLog.setStatus(1);
buildLogRepository.save(buildLog);
}
Expand Down

0 comments on commit d7cacdf

Please sign in to comment.