From d8a3227f57ff008eee7453f3179ffc74bc4a7d58 Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 20 Feb 2025 19:21:35 +0100 Subject: [PATCH] Genres: drop showIDs, add image --- src/genres/dto/genre.dto.ts | 2 +- src/genres/entities/genre.entity.ts | 2 +- src/genres/schema/genres.schema.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/genres/dto/genre.dto.ts b/src/genres/dto/genre.dto.ts index 8f57ea7..ff5829c 100644 --- a/src/genres/dto/genre.dto.ts +++ b/src/genres/dto/genre.dto.ts @@ -1,5 +1,5 @@ export class GenreDto { _id: string; name: string; - showIDs: string[]; + image: string; } diff --git a/src/genres/entities/genre.entity.ts b/src/genres/entities/genre.entity.ts index 8bfeef1..a41b3da 100644 --- a/src/genres/entities/genre.entity.ts +++ b/src/genres/entities/genre.entity.ts @@ -1,5 +1,5 @@ export class Genre { _id: string; name: string; - showIDs: string[]; + image: string; } diff --git a/src/genres/schema/genres.schema.ts b/src/genres/schema/genres.schema.ts index c1ee57d..5ecb165 100644 --- a/src/genres/schema/genres.schema.ts +++ b/src/genres/schema/genres.schema.ts @@ -2,5 +2,5 @@ import { Schema } from 'mongoose'; export const GenreSchema = new Schema({ name: { type: String, required: true }, - showIDs: [{ type: Schema.Types.ObjectId, ref: 'Show' }], + image: { type: String, required: true }, });