From fdbd0b594ca57eb3668f4425127f4dc16d3902f7 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期三, 01 十二月 2021 10:27:41 +0800
Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM

---
 pamapi/src/main/java/com/pollex/pam/service/CustomerService.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/service/CustomerService.java b/pamapi/src/main/java/com/pollex/pam/service/CustomerService.java
index c944a44..79a086d 100644
--- a/pamapi/src/main/java/com/pollex/pam/service/CustomerService.java
+++ b/pamapi/src/main/java/com/pollex/pam/service/CustomerService.java
@@ -64,7 +64,7 @@
 	}
 
     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));
 
@@ -75,7 +75,7 @@
     }
 
     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));
 

--
Gitblit v1.8.0