Skip to content

🎥 Make videos programmatically with React

no more expect error!

Jonny Burgerc96aa9c3b81a
diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.ts
index 0b53e29012..e488b83bb4 100644
--- a/packages/lambda/src/functions/launch.ts
+++ b/packages/lambda/src/functions/launch.ts
@@ -73,7 +73,6 @@ const callFunctionWithRetry = async ({
await getLambdaClient(getCurrentRegionInFunction()).send(
new InvokeCommand({
FunctionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
- // @ts-expect-error
Payload: JSON.stringify(payload),
InvocationType: 'Event',
})
diff --git a/packages/lambda/src/functions/start.ts b/packages/lambda/src/functions/start.ts
index efeb110431..51b4c76e81 100644
--- a/packages/lambda/src/functions/start.ts
+++ b/packages/lambda/src/functions/start.ts
@@ -99,7 +99,6 @@ export const startHandler = async (params: LambdaPayload, options: Options) => {
await getLambdaClient(getCurrentRegionInFunction()).send(
new InvokeCommand({
FunctionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
- // @ts-expect-error
Payload: JSON.stringify(payload),
InvocationType: 'Event',
})
diff --git a/packages/lambda/src/shared/call-lambda.ts b/packages/lambda/src/shared/call-lambda.ts
index 948176e3c3..2842a8e830 100644
--- a/packages/lambda/src/shared/call-lambda.ts
+++ b/packages/lambda/src/shared/call-lambda.ts
@@ -25,7 +25,6 @@ export const callLambda = async <T extends LambdaRoutines>({
const res = await getLambdaClient(region, timeoutInTest).send(
new InvokeWithResponseStreamCommand({
FunctionName: functionName,
- // @ts-expect-error
Payload: JSON.stringify({type, ...payload}),
})
);