| | |
| | | } |
| | | |
| | | public void updateLoggedCustomer(CustomerDTO customerDTO) { |
| | | Long customerId = SecurityUtils.getCustomerId(); |
| | | Long customerId = SecurityUtils.getCustomerDBId(); |
| | | Customer customer = customerRepository.findById(customerId) |
| | | .orElseThrow(() -> new UsernameNotFoundException("customerId which is from token is not found in customer db table, customer id = " + customerId)); |
| | | |
| | |
| | | } |
| | | |
| | | public CustomerDTO getLoggedCustomerDTO() { |
| | | Long customerId = SecurityUtils.getCustomerId(); |
| | | Long customerId = SecurityUtils.getCustomerDBId(); |
| | | Customer customer = customerRepository.findById(customerId) |
| | | .orElseThrow(() -> new UsernameNotFoundException("customerId which is from token is not found in customer db table, customer id = " + customerId)); |
| | | |