diff --git a/.github/workflows/deploy_to_prod.yml b/.github/workflows/deploy_to_prod.yml index ad22140..6b29aa0 100644 --- a/.github/workflows/deploy_to_prod.yml +++ b/.github/workflows/deploy_to_prod.yml @@ -37,5 +37,6 @@ jobs: env: JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }} DB_SERVICE_URL: ${{ secrets.DB_SERVICE_URL }} + DB_SERVICE_TOKEN: ${{ secrets.DB_SERVICE_TOKEN }} run: sam deploy --stack-name PortalBackendProd --s3-bucket af-portal-backend --s3-prefix staging --no-confirm-changeset --no-fail-on-empty-changeset --region ap-south-1 --capabilities CAPABILITY_IAM --parameter-overrides 'JwtSecretKey=$JWT_SECRET_KEY DbServiceUrl=$DB_SERVICE_URL' diff --git a/.github/workflows/deploy_to_staging.yml b/.github/workflows/deploy_to_staging.yml index 2d02d60..c87e8b2 100644 --- a/.github/workflows/deploy_to_staging.yml +++ b/.github/workflows/deploy_to_staging.yml @@ -38,6 +38,7 @@ jobs: env: JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }} DB_SERVICE_URL: ${{ secrets.DB_SERVICE_URL }} + DB_SERVICE_TOKEN: ${{ secrets.DB_SERVICE_TOKEN }} run: sam deploy --stack-name PortalBackendStaging diff --git a/app/router/form.py b/app/router/form.py index 977a8af..85590a9 100644 --- a/app/router/form.py +++ b/app/router/form.py @@ -108,6 +108,7 @@ def get_form_schema(request: Request): query_params = helpers.validate_and_build_query_params( request.query_params, ["id", "name"] ) + response = requests.get( routes.form_db_url, params=query_params, headers=db_request_token() )