Skip to content

Commit

Permalink
build: change handler entry
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenkhavi committed Dec 22, 2023
1 parent 14f19e9 commit 65bc9d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/image-resizer/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { extractParams } from '@s3-utils/index';
import { S3Event } from 'aws-lambda';

export const lambdaHandler = async (event: S3Event): Promise<void> => {
export const handler = async (event: S3Event): Promise<void> => {
const { videoFileName, triggerBucketName } = extractParams(event);
console.log({ videoFileName, triggerBucketName });
};
2 changes: 1 addition & 1 deletion apps/thumbnail-generator/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { S3Event } from 'aws-lambda';
import { extractParams } from '@s3-utils';

export const lambdaHandler = async (event: S3Event): Promise<void> => {
export const handler = async (event: S3Event): Promise<void> => {
const { videoFileName, triggerBucketName } = extractParams(event);
console.log({ videoFileName, triggerBucketName });
};

0 comments on commit 65bc9d2

Please sign in to comment.