From 520ed8f6387e0744a21a52912418e3acb08d18a5 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 19:18:27 +0530 Subject: different brands and items for different users --- item/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'item/hooks.go') 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 } -- cgit v1.2.3