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,7 +108,16 @@ namespace Ombi.Core.Engine
|
||||||
|
|
||||||
// Remove the ID since this is a new child
|
// Remove the ID since this is a new child
|
||||||
tvBuilder.ChildRequest.Id = 0;
|
tvBuilder.ChildRequest.Id = 0;
|
||||||
return await AddExistingRequest(tvBuilder.ChildRequest, existingRequest);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is a new request
|
// This is a new request
|
||||||
|
|
|
@ -18,7 +18,6 @@ export class UpdateComponent implements OnInit {
|
||||||
private fb: FormBuilder) { }
|
private fb: FormBuilder) { }
|
||||||
|
|
||||||
public ngOnInit() {
|
public ngOnInit() {
|
||||||
|
|
||||||
this.settingsService.getUpdateSettings()
|
this.settingsService.getUpdateSettings()
|
||||||
.subscribe(x => {
|
.subscribe(x => {
|
||||||
this.form = this.fb.group({
|
this.form = this.fb.group({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue