From 77ec284ade0d31b269ece540d4711e981a81db3a Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 8 Oct 2024 16:53:55 +0200 Subject: [PATCH] Fix build & CI --- .github/workflows/gh-build.yml | 2 +- server/lib/routers/index.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-build.yml b/.github/workflows/gh-build.yml index 6623da85..f72cfa5e 100644 --- a/.github/workflows/gh-build.yml +++ b/.github/workflows/gh-build.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '20.x' - name: Install build dependencies run: sudo apt update && sudo apt install wget reuse -y diff --git a/server/lib/routers/index.ts b/server/lib/routers/index.ts index 3dc25a9b..7fb83775 100644 --- a/server/lib/routers/index.ts +++ b/server/lib/routers/index.ts @@ -13,7 +13,12 @@ async function initRouters (options: RegisterServerOptions): Promise { const { getRouter } = options const router = getRouter() - router.get('/ping', (req: Request, res: Response, _next: NextFunction) => res.json({ message: 'pong' })) + router.get( + '/ping', + (req: Request, res: Response, _next: NextFunction) => { + res.json({ message: 'pong' }) + } + ) router.use('/webchat', await initWebchatRouter(options)) router.use('/settings', await initSettingsRouter(options))