diff --git a/db/db.go b/db/db.go index 14a93fd..297628c 100644 --- a/db/db.go +++ b/db/db.go @@ -473,7 +473,7 @@ func (c *Client) SetDefaultStorageByName(name string) error { func (c *Client) SaveHistoryRecord(h ent.History) (*ent.History, error) { return c.ent.History.Create().SetMediaID(h.MediaID).SetEpisodeID(h.EpisodeID).SetDate(time.Now()). SetStatus(h.Status).SetTargetDir(h.TargetDir).SetSourceTitle(h.SourceTitle).SetIndexerID(h.IndexerID). - SetSaved(h.Saved).Save(context.TODO()) + SetDownloadClientID(h.DownloadClientID).SetSaved(h.Saved).Save(context.TODO()) } func (c *Client) SetHistoryStatus(id int, status history.Status) error {