diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 22:02:56 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 22:02:56 +0530 |
commit | c6bc8d0c6d1c1ab5d26b9e47e0248002d22ecf8f (patch) | |
tree | a80b66210b6f45aaa8b3c0c39baeda451b38f765 /customer/hooks.go | |
parent | 6922e09f46a24b7bd70db5e78ab1c4a77e59303c (diff) |
moved contact details to customer model for simplicity
Diffstat (limited to 'customer/hooks.go')
-rw-r--r-- | customer/hooks.go | 5 |
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 } |