From 3445778b2b4b501fc048c23099e650f39c7f2664 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Sun, 17 May 2020 12:46:41 +0200 Subject: [PATCH] plugins/{auth,catalog}-backend: type fix --- plugins/auth-backend/src/service/router.ts | 2 +- plugins/catalog-backend/src/service/router.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/auth-backend/src/service/router.ts b/plugins/auth-backend/src/service/router.ts index 6d0282738a..f238d973aa 100644 --- a/plugins/auth-backend/src/service/router.ts +++ b/plugins/auth-backend/src/service/router.ts @@ -28,7 +28,7 @@ export async function createRouter( const logger = options.logger.child({ plugin: 'auth' }); const router = Router(); - router.get('/ping', async (req, res) => { + router.get('/ping', async (_req, res) => { res.status(200).send('pong'); }); diff --git a/plugins/catalog-backend/src/service/router.ts b/plugins/catalog-backend/src/service/router.ts index 479c4c2c1f..d2fda8a587 100644 --- a/plugins/catalog-backend/src/service/router.ts +++ b/plugins/catalog-backend/src/service/router.ts @@ -36,7 +36,7 @@ export async function createRouter( if (itemsCatalog) { // Components router - .get('/components', async (req, res) => { + .get('/components', async (_req, res) => { const components = await itemsCatalog.components(); res.status(200).send(components); }) @@ -55,7 +55,7 @@ export async function createRouter( const output = await locationsCatalog.addLocation(input); res.status(201).send(output); }) - .get('/locations', async (req, res) => { + .get('/locations', async (_req, res) => { const output = await locationsCatalog.locations(); res.status(200).send(output); })