mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: compose containers
This commit is contained in:
@@ -25,11 +25,14 @@ export const dockerRouter = createTRPCRouter({
|
||||
getContainersByAppNameMatch: protectedProcedure
|
||||
.input(
|
||||
z.object({
|
||||
appType: z
|
||||
.union([z.literal("stack"), z.literal("docker-compose")])
|
||||
.optional(),
|
||||
appName: z.string().min(1),
|
||||
}),
|
||||
)
|
||||
.query(async ({ input }) => {
|
||||
return await getContainersByAppNameMatch(input.appName);
|
||||
return await getContainersByAppNameMatch(input.appName, input.appType);
|
||||
}),
|
||||
|
||||
getContainersByAppLabel: protectedProcedure
|
||||
|
||||
Reference in New Issue
Block a user