Serverless built updates (#17351)
follow up of https://github.com/twentyhq/twenty/pull/17317
This commit is contained in:
+2
-1
@@ -9,7 +9,8 @@ export const SERVERLESS_FUNCTION_FRAGMENT = gql`
|
||||
timeoutSeconds
|
||||
latestVersion
|
||||
publishedVersions
|
||||
handlerPath
|
||||
sourceHandlerPath
|
||||
builtHandlerPath
|
||||
handlerName
|
||||
cronTriggers {
|
||||
id
|
||||
|
||||
+2
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user