fix(plex-sync): store plex added date and sort recently added by it

This commit is contained in:
sct
2021-01-13 09:51:11 +00:00
parent a262727078
commit d688a96759
7 changed files with 86 additions and 6 deletions

View File

@@ -101,6 +101,9 @@ class Media {
@Column({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' })
public lastSeasonChange: Date;
@Column({ type: 'datetime', nullable: true })
public mediaAddedAt: Date;
constructor(init?: Partial<Media>) {
Object.assign(this, init);
}