fix: function settings

This commit is contained in:
Arman
2025-05-28 17:08:53 +02:00
parent faff800d33
commit 32f7491608
2 changed files with 7 additions and 2 deletions
@@ -127,7 +127,9 @@
id || ID.unique(),
name,
runtime as Runtime,
data.template.permissions?.length ? data.template.permissions : undefined,
execute && data.template.permissions?.length
? data.template.permissions
: undefined,
data.template.events?.length ? data.template.events : undefined,
data.template.cron || undefined,
data.template.timeout ? data.template.timeout : undefined,
@@ -43,7 +43,8 @@
func.providerRepositoryId || undefined,
func.providerBranch || undefined,
func.providerSilentMode || undefined,
func.providerRootDirectory || undefined
func.providerRootDirectory || undefined,
specification || undefined
);
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -65,6 +66,8 @@
value: spec.slug,
disabled: !spec.enabled
}));
$: console.log(specification);
</script>
<Form onSubmit={updateLogging}>