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: [