Skip to content
Merged
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 @@ -169,14 +169,13 @@ public ContractNotificationResponse sendContractNotification(
.notificationType(NotificationType.CONTRACT_SIGNATURE_REQUEST)
.title(title)
.message(message)
.linkUrl(normalizeUrl(req.linkUrl()))
.linkUrl(null)
.linkUrl(normalizeUrl(req.linkUrl())) // 🔥 리퀘스트의 linkUrl 저장
.build();

notificationRepository.save(noti);

log.debug("Contract signature notification created: notiId={}, applicationId={}",
noti.getId(), applicationId);
log.debug("Contract signature notification created: notiId={}, applicationId={}, linkUrl={}",
noti.getId(), applicationId, noti.getLinkUrl());

return new ContractNotificationResponse(
true,
Expand All @@ -194,7 +193,7 @@ private static String normalizeUrl(String url) {
}

/**
* 🔥 새로 추가: 구직자 → 구인자에게 "서명 완료" 알림 생성
* 구직자 → 구인자에게 "서명 완료" 알림 생성
* - applicantId: JWT uid (요청자 = 구직자)
* - applicationId: 지원 ID
* - req.transaction: 서명된 트랜잭션(raw string)
Expand Down Expand Up @@ -234,13 +233,13 @@ public ContractNotificationResponse sendSignedContractNotification(
.notificationType(NotificationType.CONTRACT_SIGNED)
.title(title)
.message(message)
.linkUrl(normalizeUrl(req.linkUrl()))
.linkUrl(normalizeUrl(req.linkUrl())) // 🔥 여기에도 linkUrl 저장
.build();

notificationRepository.save(noti);

log.debug("Contract signed notification created: notiId={}, applicationId={}",
noti.getId(), applicationId);
log.debug("Contract signed notification created: notiId={}, applicationId={}, linkUrl={}",
noti.getId(), applicationId, noti.getLinkUrl());

return new ContractNotificationResponse(
true,
Expand Down