Skip to content

Commit

Permalink
Calling isServerReady on ready-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Simen Granlund committed Jan 22, 2021
1 parent 56f1c04 commit 0e62d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factories/createLightship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default (userConfiguration?: ConfigurationInput): Lightship => {
});

app.get('/ready', (_request, response) => {
if (serverIsReady) {
if (isServerReady()) {
response.send(SERVER_IS_READY);
} else {
response.status(500).send(SERVER_IS_NOT_READY);
Expand Down

0 comments on commit 0e62d09

Please sign in to comment.