Serverless built updates (#17351)

follow up of https://github.com/twentyhq/twenty/pull/17317
This commit is contained in:
martmull
2026-01-22 16:04:29 +01:00
committed by GitHub
parent 7fcc43f96b
commit a68e05682b
24 changed files with 194 additions and 159 deletions
@@ -9,7 +9,8 @@ export const SERVERLESS_FUNCTION_FRAGMENT = gql`
timeoutSeconds
latestVersion
publishedVersions
handlerPath
sourceHandlerPath
builtHandlerPath
handlerName
cronTriggers {
id
@@ -79,7 +79,8 @@ export const useServerlessFunctionUpdateFormState = ({
const flattenedCode = flattenSources(code);
const sourceCode = flattenedCode.find(
(flatCode) => flatCode.path === serverlessFunction?.handlerPath,
(flatCode) =>
flatCode.path === serverlessFunction?.sourceHandlerPath,
);
if (isDefined(sourceCode)) {