Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

Commit a9baf8b

Browse files
authored
Merge pull request #3064 from ItzNotABug/fix-settings-clobber
Fix: configs being reset
2 parents 594c7a3 + 6ebe1cb commit a9baf8b

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

‎bun.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/updateDeploymentRetention.svelte‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@
6464
events: func.events || undefined,
6565
schedule: func.schedule || undefined,
6666
timeout: func.timeout || undefined,
67-
enabled: func.enabled || undefined,
68-
logging: func.logging || undefined,
67+
enabled: func.enabled ?? undefined,
68+
logging: func.logging ?? undefined,
6969
entrypoint: func.entrypoint || undefined,
7070
commands: func.commands || undefined,
7171
scopes: (func.scopes as Scopes[]) || undefined,
7272
installationId: func.installationId || undefined,
7373
providerRepositoryId: func.providerRepositoryId || undefined,
7474
providerBranch: func.providerBranch || undefined,
75-
providerSilentMode: func.providerSilentMode || undefined,
75+
providerSilentMode: func.providerSilentMode ?? undefined,
7676
providerRootDirectory: func.providerRootDirectory || undefined,
7777
buildSpecification: func.buildSpecification || undefined,
7878
runtimeSpecification: func.runtimeSpecification || undefined,

‎src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/updateLogging.svelte‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@
2727
events: func.events || undefined,
2828
schedule: func.schedule || undefined,
2929
timeout: func.timeout || undefined,
30-
enabled: func.enabled || undefined,
30+
enabled: func.enabled ?? undefined,
3131
logging,
32+
deploymentRetention: func.deploymentRetention ?? undefined,
3233
entrypoint: func.entrypoint || undefined,
3334
commands: func.commands || undefined,
3435
scopes: (func.scopes as Scopes[]) || undefined,
3536
installationId: func.installationId || undefined,
3637
providerRepositoryId: func.providerRepositoryId || undefined,
3738
providerBranch: func.providerBranch || undefined,
38-
providerSilentMode: func.providerSilentMode || undefined,
39+
providerSilentMode: func.providerSilentMode ?? undefined,
3940
providerRootDirectory: func.providerRootDirectory || undefined,
4041
buildSpecification: func.buildSpecification || undefined
4142
});

‎src/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateDeploymentRetention.svelte‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
siteId: site.$id,
5656
name: site.name,
5757
framework: site.framework as Framework,
58-
enabled: site.enabled || undefined,
59-
logging: site.logging || undefined,
58+
enabled: site.enabled ?? undefined,
59+
logging: site.logging ?? undefined,
6060
timeout: site.timeout || undefined,
6161
installCommand: site.installCommand || undefined,
6262
buildCommand: site.buildCommand || undefined,
@@ -67,7 +67,7 @@
6767
installationId: site.installationId || undefined,
6868
providerRepositoryId: site.providerRepositoryId || undefined,
6969
providerBranch: site.providerBranch || undefined,
70-
providerSilentMode: site.providerSilentMode || undefined,
70+
providerSilentMode: site.providerSilentMode ?? undefined,
7171
providerRootDirectory: site.providerRootDirectory || undefined,
7272
buildSpecification: site.buildSpecification || undefined,
7373
runtimeSpecification: site.runtimeSpecification || undefined,

‎src/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateLogging.svelte‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
siteId: site.$id,
2020
name: site.name,
2121
framework: site.framework as Framework,
22-
enabled: site?.enabled || undefined,
22+
enabled: site?.enabled ?? undefined,
2323
logging,
2424
timeout: site?.timeout || undefined,
25+
deploymentRetention: site?.deploymentRetention ?? undefined,
2526
installCommand: site?.installCommand || undefined,
2627
buildCommand: site?.buildCommand || undefined,
2728
startCommand: site?.startCommand || undefined,
@@ -32,7 +33,7 @@
3233
installationId: site?.installationId || undefined,
3334
providerRepositoryId: site?.providerRepositoryId || undefined,
3435
providerBranch: site?.providerBranch || undefined,
35-
providerSilentMode: site?.providerSilentMode || undefined,
36+
providerSilentMode: site?.providerSilentMode ?? undefined,
3637
providerRootDirectory: site?.providerRootDirectory || undefined,
3738
buildSpecification: site?.buildSpecification || undefined
3839
});

0 commit comments

Comments
 (0)