diff --git a/backend/custom/graphql_jwt.py b/backend/custom/graphql_jwt.py index 642b7331..1f398416 100644 --- a/backend/custom/graphql_jwt.py +++ b/backend/custom/graphql_jwt.py @@ -170,6 +170,7 @@ def mutate(cls, *args, **kwargs): { "pro_subscription_status": user.pro_subscription_status, "is_subscription_active": is_subscription_active, + "has_chatbot_access": user.has_chatbot_access, } ) return response diff --git a/compose.yaml b/compose.yaml index fba2bc7d..e2945d82 100644 --- a/compose.yaml +++ b/compose.yaml @@ -37,7 +37,6 @@ services: env_file: [.env] ports: [5432:5432] volumes: [pgdata:/var/lib/postgresql/data] - networks: [default, db_network] healthcheck: test: [CMD, pg_isready, -U, postgres] interval: 1m @@ -64,7 +63,7 @@ services: - 8080:80 # API port - 5678:5678 # Debug port volumes: [.:/app, $HOME/.basedosdados/credentials:/app/credentials:ro] - networks: [default, db_network] + networks: [default, api_network] depends_on: index: condition: service_healthy @@ -82,7 +81,7 @@ services: volumes: esdata: pgdata: -# External network used for database access by other services (e.g., chatbot API) +# External network used for api access by other services (e.g., chatbot API) networks: - db_network: - name: db_network + api_network: + name: api_network