fix(usergrant): delete in handler search for correct key (#732)

This commit is contained in:
Silvan
2020-09-11 16:01:03 +02:00
committed by GitHub
parent c37d55b069
commit eefdd17478

View File

@@ -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)
}