From eefdd174789f61fc04044c5e02f05d7530a7d55a Mon Sep 17 00:00:00 2001 From: Silvan Date: Fri, 11 Sep 2020 16:01:03 +0200 Subject: [PATCH] fix(usergrant): delete in handler search for correct key (#732) --- internal/usergrant/repository/view/user_grant_view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/usergrant/repository/view/user_grant_view.go b/internal/usergrant/repository/view/user_grant_view.go index a3d2d87d3..c09bdda08 100644 --- a/internal/usergrant/repository/view/user_grant_view.go +++ b/internal/usergrant/repository/view/user_grant_view.go @@ -139,6 +139,6 @@ func PutUserGrants(db *gorm.DB, table string, grants ...*model.UserGrantView) er } func DeleteUserGrant(db *gorm.DB, table, grantID string) error { - delete := repository.PrepareDeleteByKey(table, model.UserGrantSearchKey(grant_model.UserGrantSearchKeyGrantID), grantID) + delete := repository.PrepareDeleteByKey(table, model.UserGrantSearchKey(grant_model.UserGrantSearchKeyID), grantID) return delete(db) }