From 7f800b2388e4297702207093d96070e61c04fc6f Mon Sep 17 00:00:00 2001 From: deuszx Date: Thu, 16 May 2024 15:00:50 +0200 Subject: [PATCH] RM sha from /health --- docker/Dockerfile | 2 +- src/servers/http/index.ts | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 1b15c73..5bf0e3c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ FROM node:20-alpine -RUN apk add bash curl git +RUN apk add bash curl WORKDIR /common-api COPY . . diff --git a/src/servers/http/index.ts b/src/servers/http/index.ts index c4cc8d5..ac07899 100644 --- a/src/servers/http/index.ts +++ b/src/servers/http/index.ts @@ -5,10 +5,6 @@ import express from "express"; import { Config } from "../../config"; const addressRegex = /[\w\d]{48}/; -const sha = require("child_process") - .execSync("git rev-parse --short HEAD") - .toString() - .trim(); export function healthcheckEnpoint(app: express.Express, config: Config) { app.get("/health", (_req, res) => { @@ -16,7 +12,6 @@ export function healthcheckEnpoint(app: express.Express, config: Config) { priceCacheEnabled: config.enablePriceCache, demoModeEnabled: config.enableDemoMode, graphqlUpdatesEnabled: config.enableGraphql, - sha: sha, }; res.send(status); });