fix(healthcheck): correct arrow syntax and add unit tests
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
const port = process.env.PORT || 8080;
|
||||
|
||||
fetch(`http://127.0.0.1:${port}/healthz`)
|
||||
.then((res)) => process.exit(res.ok ? 0:1))
|
||||
.catch(() process.exit(1));
|
||||
.then((res) => process.exit(res.ok ? 0 : 1))
|
||||
.catch(() => process.exit(1));
|
||||
|
||||
Reference in New Issue
Block a user