From 65945e1e7e2b008fbd2ea95c598d34efcaa71312 Mon Sep 17 00:00:00 2001 From: Aponia Date: Thu, 21 Dec 2023 13:11:52 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20typescript=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/src/routes/v1/rest/websoc/+config.ts | 2 +- apps/api/src/routes/v1/rest/websoc/{id}/+config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/routes/v1/rest/websoc/+config.ts b/apps/api/src/routes/v1/rest/websoc/+config.ts index 50d409d0..2367b871 100644 --- a/apps/api/src/routes/v1/rest/websoc/+config.ts +++ b/apps/api/src/routes/v1/rest/websoc/+config.ts @@ -14,7 +14,7 @@ export const overrides: ApiPropsOverride = { constructs: { ...constructs, functionProps: (scope, id) => ({ - ...constructs.functionProps(scope, id), + ...constructs.functionProps?.(scope, id), role: new Role(scope, `${id}-v1-rest-websoc-role`, { assumedBy: new ServicePrincipal("lambda.amazonaws.com"), managedPolicies: [ diff --git a/apps/api/src/routes/v1/rest/websoc/{id}/+config.ts b/apps/api/src/routes/v1/rest/websoc/{id}/+config.ts index 90b01ebe..edcbedde 100644 --- a/apps/api/src/routes/v1/rest/websoc/{id}/+config.ts +++ b/apps/api/src/routes/v1/rest/websoc/{id}/+config.ts @@ -14,7 +14,7 @@ export const overrides: ApiPropsOverride = { constructs: { ...constructs, functionProps: (scope, id) => ({ - ...constructs.functionProps(scope, id), + ...constructs.functionProps?.(scope, id), role: new Role(scope, `${id}-v1-rest-websoc-id-role`, { assumedBy: new ServicePrincipal("lambda.amazonaws.com"), managedPolicies: [