From c6bc8d0c6d1c1ab5d26b9e47e0248002d22ecf8f Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 22:02:56 +0530 Subject: moved contact details to customer model for simplicity --- customer/hooks.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'customer/hooks.go') 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 } -- cgit v1.2.3