Fix correct interior env names (#38)
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
DATABASE_URL=postgresql://fondberg:@docker.for.mac.localhost/photowall
|
DATABASE_URL=postgresql://fondberg:@docker.for.mac.localhost/photowall
|
||||||
COGNITO_POOL_ID=eu-west-1_3O4VfvPn7
|
COGNITO_POOL_ID=eu-west-1_3O4VfvPn7
|
||||||
INTERIOR_TOKEN=
|
INTERIORS_TOKEN=
|
||||||
INTERIOR_URL=https://0hrq0zel2h.execute-api.eu-west-1.amazonaws.com/Prod
|
INTERIORS_URL=https://0hrq0zel2h.execute-api.eu-west-1.amazonaws.com/Prod
|
||||||
|
|||||||
+2
-2
@@ -14,8 +14,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- COGNITO_POOL_ID=eu-west-1_3O4VfvPn7
|
- COGNITO_POOL_ID=eu-west-1_3O4VfvPn7
|
||||||
- DATABASE_URL=${DATABASE_URL}
|
- DATABASE_URL=${DATABASE_URL}
|
||||||
- INTERIOR_TOKEN=${INTERIOR_TOKEN}
|
- INTERIORS_TOKEN=${INTERIORS_TOKEN}
|
||||||
- INTERIOR_URL=${INTERIOR_URL}
|
- INTERIORS_URL=${INTERIORS_URL}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { Product, ProductGroup } from '../types/product-types';
|
|||||||
export class InteriorsLambdaAPI extends RESTDataSource {
|
export class InteriorsLambdaAPI extends RESTDataSource {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
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 isRepeating = found !== undefined;
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
token: process.env.INTERIOR_TOKEN,
|
token: process.env.INTERIORS_TOKEN,
|
||||||
image: `products/${product.id}.jpg`,
|
image: `products/${product.id}.jpg`,
|
||||||
primary_image_area: [
|
primary_image_area: [
|
||||||
product.fields.focusXpoint2,
|
product.fields.focusXpoint2,
|
||||||
|
|||||||
Reference in New Issue
Block a user