Skip to content

Commit

Permalink
feat: dont require homeorg for healthz
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jan 12, 2024
1 parent 83f7bf0 commit e4aa4f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ const assertApiKey = (req, res, next) => {
};

const assertHomeOrgExists = async (req, res, next) => {
// Skip everything if the request is a GET request to /healthz
if (req.method === "GET" && req.path === "/healthz") {
return next();
}

try {
const homeOrgUid = await getHomeOrgUid();

Expand Down

0 comments on commit e4aa4f6

Please sign in to comment.