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 }, });