mirror of
https://github.com/Readarr/Readarr
synced 2025-12-14 20:36:18 +01:00
Only send monitored edition in webhook payload.
This commit is contained in:
parent
22781b62e6
commit
dcc2a14c60
1 changed files with 2 additions and 3 deletions
|
|
@ -9,7 +9,6 @@ public class WebhookBook
|
|||
{
|
||||
public WebhookBook()
|
||||
{
|
||||
Editions = new List<WebhookBookEdition>();
|
||||
}
|
||||
|
||||
public WebhookBook(Book book)
|
||||
|
|
@ -18,13 +17,13 @@ public WebhookBook(Book book)
|
|||
GoodreadsId = book.ForeignBookId;
|
||||
Title = book.Title;
|
||||
ReleaseDate = book.ReleaseDate;
|
||||
Editions = book.Editions.Value.Select(x => new WebhookBookEdition(x)).ToList();
|
||||
Edition = new WebhookBookEdition(book.Editions.Value.Single(e => e.Monitored));
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
public string GoodreadsId { get; set; }
|
||||
public string Title { get; set; }
|
||||
public List<WebhookBookEdition> Editions { get; set; }
|
||||
public WebhookBookEdition Edition { get; set; }
|
||||
public DateTime? ReleaseDate { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue