diff options
author | developomp <developomp@gmail.com> | 2021-10-20 09:13:22 +0900 |
---|---|---|
committer | developomp <developomp@gmail.com> | 2021-10-20 09:13:22 +0900 |
commit | 99f6da9762b4af37bf2aec290aae653e42857953 (patch) | |
tree | d25ea1000ec031189b1711ca328230ecaf8d8ecd /api/src/routes/- | |
parent | prettier formatted /bundle (diff) | |
download | server-99f6da9762b4af37bf2aec290aae653e42857953.tar.xz |
prettier formatted /api
Diffstat (limited to 'api/src/routes/-')
-rw-r--r-- | api/src/routes/-/healthz.ts | 2 | ||||
-rw-r--r-- | api/src/routes/-/readyz.ts | 2 |
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); } }); |