Skip to content

Commit

Permalink
fix: skill 구독 url 수정 (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
thdwoqor authored Dec 26, 2024
1 parent 501f1d4 commit 238db16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/mafia/mafiatogether/job/ui/JobController.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ public void executeWebSocketSkill(
) throws JsonProcessingException {
JobExecuteAbilityResponse response = jobService.executeSkill(playerInfoDto.code(), playerInfoDto.name(),
request);
String auth = Base64.getEncoder()
.encodeToString((playerInfoDto.code() + ":" + playerInfoDto.name()).getBytes());

stringRedisTemplate.convertAndSend(
String.format("/sub/job/skill/%s/%s", response.job().toLowerCase(), auth),
String.format("/sub/jobs/skill/%s/%s", response.job().toLowerCase(),playerInfoDto.code()),
objectMapper.writeValueAsString(response)
);
}
Expand Down

0 comments on commit 238db16

Please sign in to comment.