Skip to content

Commit

Permalink
hotfix: not valid contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwitr0 committed Feb 22, 2024
1 parent 81a3da5 commit 2472e0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/season/dto/v1/season.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPropertyOptional } from '@nestjs/swagger';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class EpisodeV1 {
@ApiPropertyOptional()
Expand All @@ -18,7 +18,7 @@ export class EpisodeV1 {
}

export class SeasonV1 {
@ApiPropertyOptional()
@ApiProperty()
movieId: number;

@ApiPropertyOptional()
Expand Down
4 changes: 2 additions & 2 deletions src/season/schemas/season.schema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { HydratedDocument } from 'mongoose';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { ShortImage } from '../../movie/schemas/movie.schema';

export class Episode {
Expand Down Expand Up @@ -44,7 +44,7 @@ export type SeasonDocument = HydratedDocument<Season>;
toObject: { virtuals: true },
})
export class Season {
@ApiPropertyOptional()
@ApiProperty()
@Prop({ index: true })
movieId: number;

Expand Down

0 comments on commit 2472e0b

Please sign in to comment.