Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hotfix] 서버 알림 오타 핫픽스 수정 운영서버 배포 #281

Merged
merged 3 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading