Skip to content

Commit

Permalink
Fix the default NGO Hub host
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Dec 19, 2024
1 parent 5abef21 commit 265b6f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/redirectioneaza/settings/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
AWS_COGNITO_VERIFIED_EMAIL=(bool, True),
# NGO Hub
NGOHUB_HOME_HOST=(str, "ngohub.ro"),
NGOHUB_APP_HOST=(str, "app-staging.ngohub.ro"),
NGOHUB_API_HOST=(str, "api-staging.ngohub.ro"),
NGOHUB_APP_HOST=(str, "app.ngohub.ro"),
NGOHUB_API_HOST=(str, "api.ngohub.ro"),
NGOHUB_API_ACCOUNT=(str, ""),
NGOHUB_API_KEY=(str, ""),
UPDATE_ORGANIZATION_METHOD=(str, "async"),
Expand Down
2 changes: 2 additions & 0 deletions backend/redirectioneaza/social_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ def _get_user_profile(ngohub, user: UserModel, user_token) -> UserProfile:
except HubHTTPException:
user.deactivate()

logger.error(f"User {user.email} could not be found in NGO Hub. Please check the configuration.")

raise ImmediateHttpResponse(redirect(reverse("error-app-missing")))

return user_profile
Expand Down

0 comments on commit 265b6f4

Please sign in to comment.