From e1f48945a458db3b0698b23efbe40927919904ec Mon Sep 17 00:00:00 2001 From: Aitor Algorta Date: Wed, 14 Feb 2024 16:05:08 +0100 Subject: [PATCH] lint --- .../components/schema-registry-manager/src/app.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/components/schema-registry-manager/src/app.ts b/backend/components/schema-registry-manager/src/app.ts index 061c98b81..fb7f384e3 100644 --- a/backend/components/schema-registry-manager/src/app.ts +++ b/backend/components/schema-registry-manager/src/app.ts @@ -237,19 +237,19 @@ app.get('/schemas.lastMessage', (req: ExpressRequest, res: ExpressResponse) => { async function startHealthcheck() { const server = http.createServer((req: any, res: any) => { if (req.url === '/actuator/health' && req.method === 'GET') { - const response = { status: "UP" }; + const response = {status: 'UP'}; const jsonResponse = JSON.stringify(response); - - res.writeHead(200, { 'Content-Type': 'application/json' }); + + res.writeHead(200, {'Content-Type': 'application/json'}); res.end(jsonResponse); } else { - res.writeHead(404, { 'Content-Type': 'text/plain' }); + res.writeHead(404, {'Content-Type': 'text/plain'}); res.end('Not Found'); } }); - + server.listen(80, () => { - console.log("Health-check started"); + console.log('Health-check started'); }); }