fix(notifications): always update the media table when seasons become available

This commit is contained in:
sct
2020-12-21 01:40:23 +09:00
parent 44a305426f
commit 0916b58594
5 changed files with 88 additions and 2 deletions

View File

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