diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/infra/queue/manager/SocialNotificationManager.java b/backend/core/src/main/java/site/timecapsulearchive/core/infra/queue/manager/SocialNotificationManager.java index dbaf4e480..8b251c60b 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/infra/queue/manager/SocialNotificationManager.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/infra/queue/manager/SocialNotificationManager.java @@ -61,12 +61,10 @@ public void sendFriendRequestMessages( return; } - String preSignedUrl = s3PreSignedUrlManager.getS3PreSignedUrlForGet(profileUrl); - basicRabbitTemplate.convertAndSend( RabbitmqComponentConstants.FRIEND_REQUEST_NOTIFICATION_EXCHANGE.getSuccessComponent(), RabbitmqComponentConstants.FRIEND_REQUEST_NOTIFICATION_QUEUE.getSuccessComponent(), - FriendsReqNotificationsDto.createOf(ownerNickname, preSignedUrl, targetIds) + FriendsReqNotificationsDto.createOf(ownerNickname, profileUrl, targetIds) ); } @@ -75,10 +73,12 @@ public void sendGroupInviteMessage( final String groupProfileUrl, final List targetIds ) { + String preSignedUrl = s3PreSignedUrlManager.getS3PreSignedUrlForGet(groupProfileUrl); + basicRabbitTemplate.convertAndSend( RabbitmqComponentConstants.GROUP_INVITE_NOTIFICATION_EXCHANGE.getSuccessComponent(), RabbitmqComponentConstants.GROUP_INVITE_NOTIFICATION_QUEUE.getSuccessComponent(), - GroupInviteNotificationDto.createOf(ownerNickname, groupProfileUrl, targetIds) + GroupInviteNotificationDto.createOf(ownerNickname, preSignedUrl, targetIds) ); }