From c2ec0cb5697b67e27aeb5c0c3d7e868077e89b1b Mon Sep 17 00:00:00 2001 From: Enble Date: Thu, 30 May 2024 14:38:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B0=98=ED=99=98=EB=90=98=EB=8A=94=20p?= =?UTF-8?q?roject=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../agilehub/project/service/ProjectInviteService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/dynamicquad/agilehub/project/service/ProjectInviteService.java b/src/main/java/dynamicquad/agilehub/project/service/ProjectInviteService.java index da8dbac..0dfe143 100644 --- a/src/main/java/dynamicquad/agilehub/project/service/ProjectInviteService.java +++ b/src/main/java/dynamicquad/agilehub/project/service/ProjectInviteService.java @@ -43,13 +43,14 @@ public void sendInviteEmail(MemberRequestDto.AuthMember authMember, emailService.sendMail(emailInfo, "invite"); } + @Transactional public Project receiveInviteEmail(MemberRequestDto.AuthMember authMember, String inviteCode) { InviteRedisEntity inviteRedisEntity = inviteRedisService.findByInviteCode(inviteCode); Project project = Project.createPojoProject(Long.parseLong(inviteRedisEntity.getProjectId())); memberProjectService.createMemberProject(authMember, project, MemberProjectRole.EDITOR); - return project; + return projectQueryService.findProjectById(Long.parseLong(inviteRedisEntity.getProjectId())); } private String generateInviteCode() {