Skip to content

Commit

Permalink
Remove custom healthcheck of status service
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevan-Y committed Mar 21, 2022
1 parent 2a36f1b commit 4d75d8b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 107 deletions.
94 changes: 2 additions & 92 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/api/status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"bootstrap": "5.1.3",
"express": "4.17.3",
"express-handlebars": "6.0.3",
"get-repo-package-json": "2.0.0",
"npm-run-all": "4.1.5",
"perfect-scrollbar": "1.5.5",
"sass": "1.49.9",
Expand Down
14 changes: 0 additions & 14 deletions src/api/status/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { static: serveStatic } = require('express');
const path = require('path');
const { engine } = require('express-handlebars');
const fs = require('fs/promises');
const getPackage = require('get-repo-package-json');
const { check } = require('./services.js');
const getGitHubData = require('./js/github-stats.js');
const getFeedCount = require('./js/feed-stats.js');
Expand Down Expand Up @@ -49,19 +48,6 @@ const satelliteOptions = {
},
},
},
healthCheck: async (req, res) => {
const sha = process.env.GIT_COMMIT || 'master';
const gitHubUrl = `https://github.com/Seneca-CDOT/telescope/commit/${sha}`;
const { version } = await getPackage('https://github.com/Seneca-CDOT/telescope/blob/master/');

res.set('Cache-Control', 'public, max-age=300');

return {
version,
sha,
gitHubUrl,
};
},
};

const service = new Satellite(satelliteOptions);
Expand Down

0 comments on commit 4d75d8b

Please sign in to comment.