Skip to content

Commit

Permalink
vinh/fix dto for avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
AnataAria committed Nov 7, 2023
1 parent bfd9959 commit dab0d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public CustomerDto convertEntityToDto(Customer data) {
.birthDate(data.getBirthDate())
.gender(data.getGender())
.email(data.getAccount().getEmail())
.avatarLink(getPath())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public Optional<CustomerDto> searchCustomerByEmailDto(String customerEmailDto) {
.gender(data.getGender())
.email(customerEmailDto)
.joinDate(accountService.checkAccountByEmail(customerEmailDto).getCreateDate())
.avatarLink(data.getPath())
.build();
}
assert customerDto != null;
Expand Down

0 comments on commit dab0d46

Please sign in to comment.