mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
#865 !wip fixed a bug where we could request duplicate episodes
This commit is contained in:
parent
5f978abf86
commit
d0a7ef9223
2 changed files with 10 additions and 2 deletions
|
@ -108,6 +108,15 @@ namespace Ombi.Core.Engine
|
|||
|
||||
// Remove the ID since this is a new child
|
||||
tvBuilder.ChildRequest.Id = 0;
|
||||
if (!tvBuilder.ChildRequest.SeasonRequests.Any())
|
||||
{
|
||||
// Looks like we have removed them all! They were all duplicates...
|
||||
return new RequestEngineResult
|
||||
{
|
||||
RequestAdded = false,
|
||||
ErrorMessage = "They have already been requestsed"
|
||||
};
|
||||
}
|
||||
return await AddExistingRequest(tvBuilder.ChildRequest, existingRequest);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ export class UpdateComponent implements OnInit {
|
|||
private fb: FormBuilder) { }
|
||||
|
||||
public ngOnInit() {
|
||||
|
||||
this.settingsService.getUpdateSettings()
|
||||
.subscribe(x => {
|
||||
this.form = this.fb.group({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue