mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat(frontend): buttonWithDropdown component added (no hookups yet)
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
AfterInsert,
|
||||
getRepository,
|
||||
OneToMany,
|
||||
AfterRemove,
|
||||
} from 'typeorm';
|
||||
import { User } from './User';
|
||||
import Media from './Media';
|
||||
@@ -67,6 +68,15 @@ export class MediaRequest {
|
||||
}
|
||||
}
|
||||
|
||||
@AfterRemove()
|
||||
private async handleRemoveParentUpdate() {
|
||||
const mediaRepository = getRepository(Media);
|
||||
if (!this.media.requests || this.media.requests.length === 0) {
|
||||
this.media.status = MediaStatus.UNKNOWN;
|
||||
mediaRepository.save(this.media);
|
||||
}
|
||||
}
|
||||
|
||||
@AfterUpdate()
|
||||
@AfterInsert()
|
||||
private async sendToRadarr() {
|
||||
|
Reference in New Issue
Block a user