diff --git a/.env.example b/.env.example index d5448a7..890f7fa 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ DATABASE_URL=postgresql://fondberg:@docker.for.mac.localhost/photowall COGNITO_POOL_ID=eu-west-1_3O4VfvPn7 -INTERIOR_TOKEN= -INTERIOR_URL=https://0hrq0zel2h.execute-api.eu-west-1.amazonaws.com/Prod +INTERIORS_TOKEN= +INTERIORS_URL=https://0hrq0zel2h.execute-api.eu-west-1.amazonaws.com/Prod diff --git a/docker-compose.yml b/docker-compose.yml index c82ffeb..8691bb6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,8 +14,8 @@ services: environment: - COGNITO_POOL_ID=eu-west-1_3O4VfvPn7 - DATABASE_URL=${DATABASE_URL} - - INTERIOR_TOKEN=${INTERIOR_TOKEN} - - INTERIOR_URL=${INTERIOR_URL} + - INTERIORS_TOKEN=${INTERIORS_TOKEN} + - INTERIORS_URL=${INTERIORS_URL} networks: default: diff --git a/src/datasources/interiors-lambda-api.ts b/src/datasources/interiors-lambda-api.ts index 810d477..c70aadb 100644 --- a/src/datasources/interiors-lambda-api.ts +++ b/src/datasources/interiors-lambda-api.ts @@ -4,7 +4,7 @@ import { Product, ProductGroup } from '../types/product-types'; export class InteriorsLambdaAPI extends RESTDataSource { constructor() { super(); - this.baseURL = process.env.INTERIOR_URL; + this.baseURL = process.env.INTERIORS_URL; } /** @@ -23,7 +23,7 @@ export class InteriorsLambdaAPI extends RESTDataSource { const isRepeating = found !== undefined; const body = { - token: process.env.INTERIOR_TOKEN, + token: process.env.INTERIORS_TOKEN, image: `products/${product.id}.jpg`, primary_image_area: [ product.fields.focusXpoint2,