diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 19:18:27 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 19:18:27 +0530 |
commit | 520ed8f6387e0744a21a52912418e3acb08d18a5 (patch) | |
tree | 7865e20c8e1828d7b1a7d513b08dc282b291aa05 /item/hooks.go | |
parent | 020fc720379255832aad369dfc2dece9a1cf4699 (diff) |
different brands and items for different users
Diffstat (limited to 'item/hooks.go')
-rw-r--r-- | item/hooks.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/item/hooks.go b/item/hooks.go index ddb9a44..558a8cb 100644 --- a/item/hooks.go +++ b/item/hooks.go @@ -25,7 +25,7 @@ import ( func (i *SavedItem) BeforeSave(tx *gorm.DB) error { var err error - err = checkIfBrandExists(i.BrandID) + err = checkIfBrandExists(i.BrandID, i.UserID) if err != nil { return err } |