From ce7feb1a41b63e97ad7f174073d14d0adaa3dfb8 Mon Sep 17 00:00:00 2001 From: Lyton Date: Sat, 9 Nov 2024 19:53:12 -0600 Subject: [PATCH] lint: fixed linting errors --- api/src/controllers/auth0-errors.ts | 2 +- api/src/controllers/auth0-notFound.ts | 2 +- api/src/routes/workshop.ts | 2 +- api/src/server.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/controllers/auth0-errors.ts b/api/src/controllers/auth0-errors.ts index eaa874a..23dcee5 100644 --- a/api/src/controllers/auth0-errors.ts +++ b/api/src/controllers/auth0-errors.ts @@ -8,7 +8,7 @@ export const errorHandler = ( error: any, request: Request, response: Response, - next: NextFunction + next: NextFunction, ) => { console.log("Auth Error"); diff --git a/api/src/controllers/auth0-notFound.ts b/api/src/controllers/auth0-notFound.ts index 56914e5..752e809 100644 --- a/api/src/controllers/auth0-notFound.ts +++ b/api/src/controllers/auth0-notFound.ts @@ -3,7 +3,7 @@ import { Request, Response, NextFunction } from "express"; export const notFoundHandler = ( request: Request, response: Response, - next: NextFunction + next: NextFunction, ) => { const message = "Not Found"; diff --git a/api/src/routes/workshop.ts b/api/src/routes/workshop.ts index 57d92a0..6fba172 100644 --- a/api/src/routes/workshop.ts +++ b/api/src/routes/workshop.ts @@ -51,7 +51,7 @@ router.get( "/workshops/:id", async (req: express.Request, res: express.Response) => { await getWorkshop(req, res); - } + }, ); router.post("/testId/:id", async (req: any, res: any) => { diff --git a/api/src/server.ts b/api/src/server.ts index a7e3b84..2a4ecb9 100644 --- a/api/src/server.ts +++ b/api/src/server.ts @@ -26,5 +26,5 @@ app.use(notFoundHandler); app.use(errorHandler); app.listen(process.env.PORT || 8000, () => - console.log(`Server running on port ${process.env.PORT || 8000}`) + console.log(`Server running on port ${process.env.PORT || 8000}`), );