From defbf2cdbee70f7e4180f9435286064918530e76 Mon Sep 17 00:00:00 2001 From: Toast Date: Fri, 31 Jan 2025 12:34:57 +0100 Subject: [PATCH] Run linter --- src/main.ts | 4 ++-- src/shows/schema/show.schema.ts | 2 +- src/shows/shows.controller.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 6c56110..2e23c55 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,12 +6,12 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); const logger = new Logger('bootstrap'); - let origin = ['https://shows.everest.tailscale/admin/']; + const origin = ['https://shows.everest.tailscale/admin/']; if (process.env.NODE_ENV == 'production') { logger.log('In production mode'); } else { logger.log('In development mode'); - origin.push("http://localhost:4200") + origin.push('http://localhost:4200'); } app.enableCors({ credentials: true, diff --git a/src/shows/schema/show.schema.ts b/src/shows/schema/show.schema.ts index 28daa01..8e8e50c 100644 --- a/src/shows/schema/show.schema.ts +++ b/src/shows/schema/show.schema.ts @@ -3,7 +3,7 @@ import { Schema } from 'mongoose'; export const ShowSchema = new Schema({ title: { type: String, required: true }, date: { type: Date, required: true }, - seasons: { type: Number, required: true}, + seasons: { type: Number, required: true }, episodes: { type: Number, required: true }, description: { type: String, required: true }, genres: [{ type: String, required: true }], diff --git a/src/shows/shows.controller.ts b/src/shows/shows.controller.ts index b9b8083..7924d92 100644 --- a/src/shows/shows.controller.ts +++ b/src/shows/shows.controller.ts @@ -25,7 +25,7 @@ export class ShowsController { return { status: 'Ok', message: 'Show was created successfully', - newId: newShow._id + newId: newShow._id, }; } catch (error) { throw new BadRequestException({