mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat: issues (#2180)
This commit is contained in:
@@ -13,7 +13,7 @@ import Season from '../entity/Season';
|
||||
import notificationManager, { Notification } from '../lib/notifications';
|
||||
|
||||
@EventSubscriber()
|
||||
export class MediaSubscriber implements EntitySubscriberInterface {
|
||||
export class MediaSubscriber implements EntitySubscriberInterface<Media> {
|
||||
private async notifyAvailableMovie(entity: Media, dbEntity?: Media) {
|
||||
if (
|
||||
entity.status === MediaStatus.AVAILABLE &&
|
||||
@@ -169,4 +169,8 @@ export class MediaSubscriber implements EntitySubscriberInterface {
|
||||
this.updateChildRequestStatus(event.entity as Media, true);
|
||||
}
|
||||
}
|
||||
|
||||
public listenTo(): typeof Media {
|
||||
return Media;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user