fix: add sourceType to apiCreateCompose and apiCreateApplication

apiCreateCompose and apiCreateApplication did not include sourceType in their .pick() schemas, causing every compose/application created via the API to default to 'github' in the DB. Users had to manually update the sourceType after creation.

sourceType is already defined as .optional() in both createSchemas, so this is backward-compatible — callers that don't send it will still get the DB default ('github').
This commit is contained in:
Roo
2026-06-29 23:37:47 -04:00
parent 8b6481501e
commit 30c408b130
2 changed files with 2 additions and 0 deletions
@@ -387,6 +387,7 @@ export const apiCreateApplication = createSchema.pick({
description: true,
environmentId: true,
serverId: true,
sourceType: true,
});
export const apiFindOneApplication = z.object({
+1
View File
@@ -179,6 +179,7 @@ export const apiCreateCompose = createSchema.pick({
appName: true,
serverId: true,
composeFile: true,
sourceType: true,
});
export const apiCreateComposeByTemplate = createSchema