🎥 Make videos programmatically with React
Fix null and undefineds & remove ?? from registerUsageEvent
Pramodfe6a4ee8d76d
diff --git a/packages/lambda-client/src/make-lambda-payload.ts b/packages/lambda-client/src/make-lambda-payload.tsindex 3ae1a8cbd2..db672304ef 100644--- a/packages/lambda-client/src/make-lambda-payload.ts+++ b/packages/lambda-client/src/make-lambda-payload.ts@@ -225,7 +225,7 @@ export const makeLambdaRenderMediaPayload = async ({offthreadVideoThreads: offthreadVideoThreads ?? null,mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,storageClass: storageClass ?? null,- isProduction: isProduction ?? null,+ isProduction,};};@@ -332,6 +332,6 @@ export const makeLambdaRenderStillPayload = async ({offthreadVideoThreads: offthreadVideoThreads ?? null,mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,storageClass: storageClass ?? null,- isProduction: isProduction ?? null,+ isProduction,};};diff --git a/packages/lambda-client/src/render-still-on-lambda.ts b/packages/lambda-client/src/render-still-on-lambda.tsindex 20bb7d14ac..58e84a255e 100644--- a/packages/lambda-client/src/render-still-on-lambda.ts+++ b/packages/lambda-client/src/render-still-on-lambda.ts@@ -52,7 +52,7 @@ type OptionalParameters = {forcePathStyle: boolean;storageClass: StorageClass | null;requestHandler: RequestHandler | null | undefined;- isProduction?: boolean;+ isProduction: boolean | null;} & ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnLambda>;export type RenderStillOnLambdaNonNullInput = MandatoryParameters &@@ -207,6 +207,6 @@ export const renderStillOnLambda = (storageClass: input.storageClass ?? null,requestHandler: input.requestHandler ?? null,mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null,- isProduction: input.isProduction,+ isProduction: input.isProduction ?? null,});};diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.tsindex 8dc9095f83..509afc2239 100644--- a/packages/lambda/src/cli/commands/still.ts+++ b/packages/lambda/src/cli/commands/still.ts@@ -290,6 +290,7 @@ export const stillCommand = async ({offthreadVideoThreads: null,requestHandler: null,mediaCacheSizeInBytes,+ isProduction: null,});Log.info({indent: false, logLevel},diff --git a/packages/licensing/src/register-usage-event.ts b/packages/licensing/src/register-usage-event.tsindex 8f3c038f10..2eee75ef71 100644--- a/packages/licensing/src/register-usage-event.ts+++ b/packages/licensing/src/register-usage-event.ts@@ -85,8 +85,8 @@ export const registerUsageEvent = async ({apiKey: licenseKey ?? apiKey,host,succeeded,- isStill: isStill ?? false,- isProduction: isProduction ?? undefined,+ isStill,+ isProduction,}),headers: {'Content-Type': 'application/json',