Skip to content

Commit

Permalink
Merge pull request #281 from MOONSHOT-Team/develop
Browse files Browse the repository at this point in the history
[Hotfix] 서버 알림 오타 핫픽스 수정 운영서버 배포
  • Loading branch information
its-sky authored May 29, 2024
2 parents 106b524 + ecc0005 commit d2cc634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
@RequiredArgsConstructor
public class UserSignUpService {

private final UserRepository userRepository;
private final ApplicationEventPublisher eventPublisher;

@Async
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void publishSignUpEvent(User user) {
Long totalUserCount = userRepository.count();
eventPublisher.publishEvent(SignUpEvent.of(
totalUserCount,
user.getId(),
user.getName(),
user.getEmail() == null ? "" : user.getEmail(),
user.getSocialPlatform().toString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void signInAppend(Long totalUserCount, String name, String email, String
DiscordWebHook discordWebhook = new DiscordWebHook(DiscordConstants.signInWebhookUrl, username, avatarUrl, false);

discordWebhook.addEmbed(new EmbedObject()
.setTitle("🚀[회원 가입] " + totalUserCount + "번쨰 유저가 가입하였습니다.🚀")
.setTitle("🚀[회원 가입] " + totalUserCount + "번째 유저가 가입하였습니다.🚀")
.setColor(Color.CYAN)
.setDescription("moonshot에 새로운 유저가 가입하였습니다.")
.setThumbnail(imgUrl)
Expand Down

0 comments on commit d2cc634

Please sign in to comment.