aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/customer/hooks.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-11 19:37:40 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-11 19:37:40 +0530
commit8a47978ca17d2f251d67d12b0e34fa26bb1e4ace (patch)
tree230669efabbbeb405ce316b0d70b80c1fe55a1ed /customer/hooks.go
parenta735e0fbe865984c8e76777e34731610ed5e4509 (diff)
allowing duplicate fields in customers, doesn't matter that muchv0.16.0
Diffstat (limited to 'customer/hooks.go')
-rw-r--r--customer/hooks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/customer/hooks.go b/customer/hooks.go
index bef3308..148004f 100644
--- a/customer/hooks.go
+++ b/customer/hooks.go
@@ -47,7 +47,7 @@ func (c *Customer) BeforeDelete(tx *gorm.DB) error {
return err
}
- // delete shipping addresses
+ // delete shipping address
err = db.Where("customer_id = ?", c.ID).Delete(&CustomerShippingAddress{}).Error
if err != nil {
return err