summary refs log tree commit diff
path: root/api/src/routes/-
diff options
context:
space:
mode:
authordevelopomp <developomp@gmail.com>2021-10-20 09:13:22 +0900
committerdevelopomp <developomp@gmail.com>2021-10-20 09:13:22 +0900
commit99f6da9762b4af37bf2aec290aae653e42857953 (patch)
treed25ea1000ec031189b1711ca328230ecaf8d8ecd /api/src/routes/-
parentprettier formatted /bundle (diff)
downloadserver-99f6da9762b4af37bf2aec290aae653e42857953.tar.xz
prettier formatted /api
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); } });