aboutsummaryrefslogtreecommitdiff
path: root/customer/hooks.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 22:02:56 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 22:02:56 +0530
commitc6bc8d0c6d1c1ab5d26b9e47e0248002d22ecf8f (patch)
treea80b66210b6f45aaa8b3c0c39baeda451b38f765 /customer/hooks.go
parent6922e09f46a24b7bd70db5e78ab1c4a77e59303c (diff)
moved contact details to customer model for simplicity
Diffstat (limited to 'customer/hooks.go')
-rw-r--r--customer/hooks.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/customer/hooks.go b/customer/hooks.go
index 020e1c5..ac246f3 100644
--- a/customer/hooks.go
+++ b/customer/hooks.go
@@ -30,11 +30,6 @@ func (c *Customer) BeforeSave(tx *gorm.DB) error {
return err
}
- err = c.Contact.validate()
- if err != nil {
- return err
- }
-
return nil
}