Skip to content

Commit

Permalink
fix: rename env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Apr 29, 2020
1 parent 6524c0f commit aaea6c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getObjectParams, getEnvironment } from "../../../utils";
import { SUPPORTED_IMAGES, SUPPORTED_TRANSFORMABLE_IMAGES, getImageKey } from "../utils";

// @ts-ignore
const IMAGE_TRANSFORMER_LAMBDA_NAME = process.env.IMAGE_TRANSFORMER_LAMBDA_NAME;
const IMAGE_TRANSFORMER_FUNCTION = process.env.IMAGE_TRANSFORMER_FUNCTION;

interface TransformerParams {
key: string;
Expand All @@ -16,7 +16,7 @@ const callImageTransformerLambda = async ({ key, transformations }: TransformerP
const imageTransformerLambda = new Lambda({ region: env.region });
const response = await imageTransformerLambda
.invoke({
FunctionName: IMAGE_TRANSFORMER_LAMBDA_NAME,
FunctionName: IMAGE_TRANSFORMER_FUNCTION,
Payload: JSON.stringify({
body: {
key,
Expand Down

0 comments on commit aaea6c8

Please sign in to comment.