Skip to content

Commit 65c668c

Browse files
committed
fix(season): episode model isn't correct #64
1 parent 8340043 commit 65c668c

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/season/schemas/season.schema.ts

+3-11
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,24 @@ import { HydratedDocument } from 'mongoose';
33
import { ApiPropertyOptional } from '@nestjs/swagger';
44

55
export class Episode {
6-
@ApiPropertyOptional()
7-
@Prop({ index: true })
8-
movieId: number;
9-
106
@ApiPropertyOptional()
117
@Prop()
12-
seasonNumber?: number;
13-
14-
@ApiPropertyOptional()
15-
@Prop()
16-
episodeNumber?: number;
8+
number?: number;
179

1810
@ApiPropertyOptional()
1911
@Prop()
2012
name?: string;
2113

2214
@ApiPropertyOptional()
2315
@Prop()
24-
alternativeName?: string;
16+
enName?: string;
2517

2618
@ApiPropertyOptional()
2719
@Prop()
2820
description?: string;
2921

3022
@ApiPropertyOptional()
31-
@Prop({ type: () => Date })
23+
@Prop()
3224
date?: string;
3325
}
3426

0 commit comments

Comments
 (0)