From 265b6f415952ea9c34997d5fea4e093636a64c48 Mon Sep 17 00:00:00 2001 From: Tudor Amariei Date: Thu, 19 Dec 2024 13:30:42 +0200 Subject: [PATCH] Fix the default NGO Hub host --- backend/redirectioneaza/settings/environment.py | 4 ++-- backend/redirectioneaza/social_adapters.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/redirectioneaza/settings/environment.py b/backend/redirectioneaza/settings/environment.py index 1769691d..d93505b7 100644 --- a/backend/redirectioneaza/settings/environment.py +++ b/backend/redirectioneaza/settings/environment.py @@ -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"), diff --git a/backend/redirectioneaza/social_adapters.py b/backend/redirectioneaza/social_adapters.py index 23dc95d4..faf369d2 100644 --- a/backend/redirectioneaza/social_adapters.py +++ b/backend/redirectioneaza/social_adapters.py @@ -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