fix: do not cleanup compose applications as unconfigured

This commit is contained in:
Andras Bacsai 2023-01-16 10:22:14 +01:00
parent 9c8f6e9195
commit 05a5816ac6
2 changed files with 6 additions and 0 deletions

View File

@ -122,6 +122,9 @@ export async function cleanupUnconfiguredApplications(request: FastifyRequest<an
include: { settings: true, destinationDocker: true, teams: true }
});
for (const application of applications) {
if (application?.buildPack === 'compose') {
continue;
}
if (
!application.buildPack ||
!application.destinationDockerId ||

View File

@ -1083,6 +1083,9 @@ export const applicationsRouter = router({
include: { settings: true, destinationDocker: true, teams: true }
});
for (const application of applications) {
if (application?.buildPack === 'compose') {
continue;
}
if (
!application.buildPack ||
!application.destinationDockerId ||