From 033e2108e732093cbf51b141d6ba52452ce1f836 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sun, 6 Aug 2023 22:49:38 -0400 Subject: Fix some linting warnings --- src/api/middlewares/Authentication.ts | 2 +- src/api/routes/auth/reset.ts | 1 - src/api/routes/connections/#connection_name/#connection_id/refresh.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/api') diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index 812888a3..9e41b453 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -16,7 +16,7 @@ along with this program. If not, see . */ -import { checkToken, Config, Rights } from "@spacebar/util"; +import { checkToken, Rights } from "@spacebar/util"; import * as Sentry from "@sentry/node"; import { NextFunction, Request, Response } from "express"; import { HTTPError } from "lambert-server"; diff --git a/src/api/routes/auth/reset.ts b/src/api/routes/auth/reset.ts index cb4f8180..b3ca1e9e 100644 --- a/src/api/routes/auth/reset.ts +++ b/src/api/routes/auth/reset.ts @@ -19,7 +19,6 @@ import { route } from "@spacebar/api"; import { checkToken, - Config, Email, FieldErrors, generateToken, diff --git a/src/api/routes/connections/#connection_name/#connection_id/refresh.ts b/src/api/routes/connections/#connection_name/#connection_id/refresh.ts index 0d432c2b..d44cf314 100644 --- a/src/api/routes/connections/#connection_name/#connection_id/refresh.ts +++ b/src/api/routes/connections/#connection_name/#connection_id/refresh.ts @@ -22,7 +22,7 @@ const router = Router(); router.post("/", route({}), async (req: Request, res: Response) => { // TODO: - const { connection_name, connection_id } = req.params; + // const { connection_name, connection_id } = req.params; res.sendStatus(204); }); -- cgit 1.5.1