aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/customer/hooks.go
diff options
context:
space:
mode:
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