fix(plex sync): catch errors that occur during processMovie

this also removes the unique constraint on imdbId

re #244 #246 #250
This commit is contained in:
sct
2020-12-14 08:01:33 +00:00
parent cb5c0403c1
commit edbbccf3ae
3 changed files with 80 additions and 42 deletions

View File

@@ -0,0 +1,20 @@
import { MigrationInterface, QueryRunner, TableUnique } from 'typeorm';
export class DropImdbIdConstraint1607928251245 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropUniqueConstraint(
'media',
'UQ_7ff2d11f6a83cb52386eaebe74b'
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createUniqueConstraint(
'media',
new TableUnique({
name: 'UQ_7ff2d11f6a83cb52386eaebe74b',
columnNames: ['imdbId'],
})
);
}
}