API 1.0.57.2 get_customer package: deactivated customer: not found
This commit is contained in:
@@ -33,8 +33,9 @@ class CustomerPackageController( private val customerRepository: CustomerReposit
|
||||
.setPrettyPrinting()
|
||||
.create()
|
||||
|
||||
val customer: Customer = customerRepository.findById(customerId).orElse(null)
|
||||
val customer: Customer = customerRepository.findByCustomerIdAndActive(customerId, "Y")
|
||||
?: return ResponseEntity.notFound().build()
|
||||
|
||||
val customerJson: String = gson.toJson(customer)
|
||||
|
||||
val listCustomerExerciseDevices = customerExerciseDeviceRepository.findByCustomerId(customerId)
|
||||
|
||||
Reference in New Issue
Block a user