Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hotfix/online_name' into dev-check
Browse files Browse the repository at this point in the history
  • Loading branch information
nohy6630 committed Nov 21, 2023
2 parents ae04384 + 887e891 commit dbe2655
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.numberone.backend.domain.member.dto.response;

import com.numberone.backend.domain.member.entity.Member;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

Expand All @@ -9,10 +10,14 @@
@Builder
public class MemberIdResponse {
private Long memberId;
private String nickname;
private String realname;

public static MemberIdResponse of(long memberId){
public static MemberIdResponse of(Member member) {
return MemberIdResponse.builder()
.memberId(memberId)
.memberId(member.getId())
.nickname(member.getNickName())
.realname(member.getRealName())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public GetNotificationRegionResponse getNotificationRegionLv2() {
public MemberIdResponse online(String email) {
Member member = findByEmail(email);
member.updateSession(true);
return MemberIdResponse.of(member.getId());
return MemberIdResponse.of(member);
}

@Transactional
Expand Down

0 comments on commit dbe2655

Please sign in to comment.