Skip to content

Commit

Permalink
Update role type casing
Browse files Browse the repository at this point in the history
- ent search was fixed from camel to snake
  • Loading branch information
cee-chen committed Sep 9, 2020
1 parent 978c7c4 commit 1e669b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('callEnterpriseSearchConfigAPI', () => {
},
role: {
id: 'account_id:somestring|user_oid:somestring',
roleType: 'owner',
role_type: 'owner',
ability: {
access_all_engines: true,
destroy: ['session'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const callEnterpriseSearchConfigAPI = async ({
onBoardingComplete: !!data?.current_user?.app_search?.account?.onboarding_complete,
role: {
id: data?.current_user?.app_search?.role?.id,
roleType: data?.current_user?.app_search?.role?.roleType,
roleType: data?.current_user?.app_search?.role?.role_type,
ability: {
accessAllEngines: !!data?.current_user?.app_search?.role?.ability?.access_all_engines,
destroy: data?.current_user?.app_search?.role?.ability?.destroy || [],
Expand Down

0 comments on commit 1e669b8

Please sign in to comment.