Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Added types for queues/cleanup

dominicbachmann76dc7ffb68f6
diff --git a/src/lib/queues/builder.ts b/src/lib/queues/builder.ts
index da0bf95d53..2e788c019b 100644
--- a/src/lib/queues/builder.ts
+++ b/src/lib/queues/builder.ts
@@ -217,9 +217,7 @@ export default async function (job: Job<BuilderJob, void, string>): Promise<void
await saveBuildLog({ line: `Build pack ${buildPack} not found`, buildId, applicationId });
throw new Error(`Build pack ${buildPack} not found.`);
}
- deployNeeded = true;
} else {
- deployNeeded = false;
await saveBuildLog({ line: 'Nothing changed.', buildId, applicationId });
}
diff --git a/src/lib/queues/cleanup.ts b/src/lib/queues/cleanup.ts
index f893535313..3802e33175 100644
--- a/src/lib/queues/cleanup.ts
+++ b/src/lib/queues/cleanup.ts
@@ -1,8 +1,6 @@
-import { dev } from '$app/env';
import { asyncExecShell, getEngine, version } from '$lib/common';
import { prisma } from '$lib/database';
-import { defaultProxyImageHttp, defaultProxyImageTcp } from '$lib/haproxy';
-export default async function () {
+export default async function (): Promise<void> {
const destinationDockers = await prisma.destinationDocker.findMany();
for (const destinationDocker of destinationDockers) {
const host = getEngine(destinationDocker.engine);