Skip to content

Commit

Permalink
chore(games-bff): Use Promise.resolve in health check
Browse files Browse the repository at this point in the history
Signed-off-by: deesejohn <deese.john@gmail.com>
  • Loading branch information
deesejohn committed Dec 17, 2023
1 parent d5bac55 commit 9d1ee79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions services/games-bff/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ const router = s.router(contract, {
},
},
health: {
// eslint-disable-next-line @typescript-eslint/require-await
getHealthLive: async () => ({
status: 204,
body: null,
}),
getHealthLive: async () =>
Promise.resolve({
status: 204,
body: null,
}),
getHealthReady: async () => {
if (await natsConnection) {
return {
Expand Down

0 comments on commit 9d1ee79

Please sign in to comment.