diff --git a/src/mcpd/src/routes/health.ts b/src/mcpd/src/routes/health.ts index b669a0a..2b9a2bb 100644 --- a/src/mcpd/src/routes/health.ts +++ b/src/mcpd/src/routes/health.ts @@ -12,7 +12,7 @@ export function registerHealthRoutes(app: FastifyInstance, deps: HealthDeps): vo const status = dbOk ? 'healthy' : 'degraded'; const statusCode = dbOk ? 200 : 503; - reply.code(statusCode).send({ + return reply.code(statusCode).send({ status, version: APP_VERSION, uptime: process.uptime(), @@ -25,6 +25,6 @@ export function registerHealthRoutes(app: FastifyInstance, deps: HealthDeps): vo // Simple liveness probe app.get('/healthz', async (_request, reply) => { - reply.code(200).send({ status: 'ok' }); + return reply.code(200).send({ status: 'ok' }); }); } diff --git a/src/mcpd/src/services/backup/git-backup.service.ts b/src/mcpd/src/services/backup/git-backup.service.ts index 0f4d242..f489085 100644 --- a/src/mcpd/src/services/backup/git-backup.service.ts +++ b/src/mcpd/src/services/backup/git-backup.service.ts @@ -75,7 +75,7 @@ export class GitBackupService { private readonly prisma: PrismaClient, repoUrl?: string, ) { - this.repoUrl = repoUrl ?? process.env.MCPD_BACKUP_REPO ?? null; + this.repoUrl = repoUrl || process.env.MCPD_BACKUP_REPO || null; } get enabled(): boolean {