Skip to content

Commit

Permalink
Fix for wrong url (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanpa-aot authored Aug 20, 2021
1 parent e5d781b commit 63cebd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auth-api/src/auth_api/services/user_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def fetch_user_settings(user_id):
UserSettingsModel(org.id, org.name, url_origin,
'/account/' + str(org.id) + '/settings',
'ACCOUNT', org.type_code, org.status_code,
'/account/' + str(org.id) + '/settings/restricted-product'
'/account/' + str(org.id) + '/restricted-product'
))

all_settings.append(UserSettingsModel(user_id, 'USER PROFILE', url_origin, '/userprofile', 'USER_PROFILE'))
Expand Down
2 changes: 1 addition & 1 deletion auth-api/tests/unit/api/test_user_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ def test_get_user_settings(client, jwt, session, keycloak_mock, monkeypatch): #
assert account['accountType'] == 'BASIC'
assert rv.status_code == http_status.HTTP_200_OK
assert schema_utils.validate(item_list, 'user_settings_response')[0]
assert account['productSettings'] == f'/account/{account["id"]}/settings/restricted-product'
assert account['productSettings'] == f'/account/{account["id"]}/restricted-product'

0 comments on commit 63cebd8

Please sign in to comment.