API 1.0.47 Customer.trial
This commit is contained in:
@@ -117,13 +117,13 @@ class CustomerController ( private val customerRepository: CustomerRepository) {
|
||||
if (newCustomer.emailSubscription != null) {
|
||||
updatedCustomer.emailSubscription = newCustomer.emailSubscription
|
||||
}
|
||||
if (newCustomer.trial != null) {
|
||||
updatedCustomer.trial = newCustomer.trial
|
||||
}
|
||||
updatedCustomer.sex = newCustomer.sex
|
||||
updatedCustomer.birthYear = newCustomer.birthYear
|
||||
updatedCustomer.fitnessLevel = newCustomer.fitnessLevel
|
||||
|
||||
|
||||
|
||||
|
||||
return ResponseEntity.ok().body(customerRepository.save(updatedCustomer))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user