Skip to content

Commit

Permalink
fix(mongo-modals): Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Sep 25, 2020
1 parent be7fb86 commit 8c0e01c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions libs/packages/mongo-models/src/download/download.object-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@ export class Download {
@Field({ description: 'The item\'s of the download, episode or movie.' })
itemType: string

@Field({ description: 'The type of torrent, default or searched.', defaultValue: 'default' })
@Field({ description: 'The type of torrent, default or searched.', defaultValue: 'scraped' })
torrentType: string

@Field(type => Episode, { description: 'The episode if type === "episode".', defaultValue: null })
episode: Episode

@Field(type => Movie, { description: 'The movie if type === "movie".', defaultValue: null })
movie: Movie
@Field(type => Episode, {
description: 'The episode if type === "episode".',
defaultValue: null,
nullable: true
})
episode?: Episode

@Field(type => Movie, {
description: 'The movie if type === "movie".',
defaultValue: null,
nullable: true
})
movie?: Movie

@Field({ description: 'The quality of the download.' })
quality: string
Expand Down

0 comments on commit 8c0e01c

Please sign in to comment.