fix: usergrant (#650)

This commit is contained in:
Fabi 2020-08-27 14:44:52 +02:00 committed by GitHub
parent ba123393be
commit d233fb6610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const (
UserGrantKeyID = "id"
UserGrantKeyUserID = "user_id"
UserGrantKeyProjectID = "project_id"
UserGrantKeyGrantID = "grant_id"
UserGrantKeyResourceOwner = "resource_owner"
UserGrantKeyState = "state"
UserGrantKeyOrgName = "org_name"

View File

@ -60,7 +60,7 @@ func (key UserGrantSearchKey) ToColumnName() string {
case grant_model.UserGrantSearchKeyResourceOwner:
return UserGrantKeyResourceOwner
case grant_model.UserGrantSearchKeyGrantID:
return UserGrantKeyID
return UserGrantKeyGrantID
case grant_model.UserGrantSearchKeyOrgName:
return UserGrantKeyOrgName
case grant_model.UserGrantSearchKeyRoleKey: