diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 23:39:05 +0530 | 
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 23:39:05 +0530 | 
| commit | cba9f19ba50c60576a5961e89c24caefca52d740 (patch) | |
| tree | 5dd36d4903c640e11a022c5fbf0e55adc3cdd5a5 /customer/service.go | |
| parent | 46083ff15e16b0b49132af9466bcab7c2ae71322 (diff) | |
deleting addresses upon customer deletion
Diffstat (limited to 'customer/service.go')
| -rw-r--r-- | customer/service.go | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/customer/service.go b/customer/service.go index f1108c6..a79e466 100644 --- a/customer/service.go +++ b/customer/service.go @@ -22,7 +22,7 @@ import (  )  func getCustomer(customer *Customer, id uint) error { -	res := db.Preload("Contact").Preload("BillingAddress").Preload("ShippingAddresses").Find(&customer, id) +	res := db.Preload("BillingAddress").Preload("ShippingAddresses").Find(&customer, id)  	// TODO: handle potential errors  	if res.Error != nil {  |