diff --git a/src/follow/follow.service.ts b/src/follow/follow.service.ts index 3e1ce75..57d3908 100644 --- a/src/follow/follow.service.ts +++ b/src/follow/follow.service.ts @@ -109,7 +109,6 @@ export class FollowService { // 사용자 프로필 이미지 const image = await this.userService.getProfileImage(mateEntity.id); - followDto.image = image.imageKey; if(image == null) followDto.image = null; else{ const userImageKey = image.imageKey; @@ -144,7 +143,6 @@ export class FollowService { // 사용자 프로필 이미지 const image = await this.userService.getProfileImage(mateEntity.id); - followDto.image = image.imageKey; if(image == null) followDto.image = null; else{ const userImageKey = image.imageKey; @@ -184,7 +182,6 @@ export class FollowService { // 사용자 프로필 이미지 const image = user.profileImage; - followSearchDto.image = image.imageKey; if(image == null) followSearchDto.image = null; else{ const userImageKey = image.imageKey; diff --git a/src/rule/rule.service.ts b/src/rule/rule.service.ts index 382881b..5ee5580 100644 --- a/src/rule/rule.service.ts +++ b/src/rule/rule.service.ts @@ -83,7 +83,7 @@ export class RuleService { rulePair.ruleDetail = sub.ruleDetail; return rulePair; - })) + })); // -3) 멤버 정보 dto.detailMembers = await Promise.all(invitations.map(async(invitation):Promise => { @@ -94,7 +94,6 @@ export class RuleService { // 사용자 프로필 이미지 const image = memberEntity.profileImage; - detailMember.image = image.imageKey; if(image == null) detailMember.image = null; else{ const userImageKey = image.imageKey; @@ -103,7 +102,7 @@ export class RuleService { return detailMember; })) return dto; - } + }; // [3] 여행 규칙 나가기 // -1) 초대 받은 팀원 -> 초대 삭제 @@ -118,7 +117,7 @@ export class RuleService { const invitationsList : RuleInvitationEntity[] = await RuleInvitationEntity.find({ where : {rule : {id: ruleId}}, relations : {member : true} - }) + }); const membersList : GetMemberListDto[] = await Promise.all(invitationsList.map(async (invitation) : Promise => { const memberEntity : UserEntity = invitation.member; @@ -132,7 +131,6 @@ export class RuleService { // 사용자 프로필 이미지 const image = await this.userService.getProfileImage(memberEntity.id); - memberDto.image = image.imageKey; if(image == null) memberDto.image = null; else { const userImageKey = image.imageKey;