Skip to content

Commit

Permalink
fix: 반환되는 project 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Enble committed May 30, 2024
1 parent 14376b8 commit c2ec0cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c2ec0cb

Please sign in to comment.