Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
lofri97 committed Jun 3, 2022
1 parent fcbb670 commit bd9fedd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void main(String[] args) {

@Bean
public AuditorAware<String> auditorProvider() {
if (SecurityContextHolder.getContext() == null || SecurityContextHolder.getContext().getAuthentication().getName() == null )
if (SecurityContextHolder.getContext() == null || SecurityContextHolder.getContext().getAuthentication() == null )
return () -> Optional.ofNullable("sys");
return () -> Optional.ofNullable(SecurityContextHolder.getContext().getAuthentication().getName());
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/hansung/ac/kr/fooding/domain/Booker.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package hansung.ac.kr.fooding.domain;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

import javax.persistence.Embeddable;

@Embeddable
@Data
@Getter
@NoArgsConstructor
public class Booker {
private Long member_id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public void edit(Table table, AdminReservPostDTO dto){
reserveDate = dto.getReserveDate();
reserveTime = dto.getReserveTime();
reserveNum = dto.getReserveNum();
booker = dto.getBooker();
isCar = dto.isCar();

}
Expand Down

0 comments on commit bd9fedd

Please sign in to comment.