summary refs log tree commit diff
path: root/api/src/routes/-
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/-')
-rw-r--r--api/src/routes/-/healthz.ts2
-rw-r--r--api/src/routes/-/readyz.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/-/healthz.ts b/api/src/routes/-/healthz.ts

index a42575f8..f7bcfebf 100644 --- a/api/src/routes/-/healthz.ts +++ b/api/src/routes/-/healthz.ts
@@ -9,7 +9,7 @@ router.get("/", route({}), (req: Request, res: Response) => { // test that the database is alive & responding getConnection(); return res.sendStatus(200); - } catch(e) { + } catch (e) { res.sendStatus(503); } }); diff --git a/api/src/routes/-/readyz.ts b/api/src/routes/-/readyz.ts
index a42575f8..f7bcfebf 100644 --- a/api/src/routes/-/readyz.ts +++ b/api/src/routes/-/readyz.ts
@@ -9,7 +9,7 @@ router.get("/", route({}), (req: Request, res: Response) => { // test that the database is alive & responding getConnection(); return res.sendStatus(200); - } catch(e) { + } catch (e) { res.sendStatus(503); } });