mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 18:44:40 +00:00
fix(usergrant): delete in handler search for correct key (#732)
This commit is contained in:
parent
c37d55b069
commit
eefdd17478
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user