mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
add series works again, now includes title.
This commit is contained in:
parent
9ed7c03d48
commit
94daf08361
80 changed files with 303 additions and 284 deletions
|
@ -40,7 +40,7 @@ namespace NzbDrone.Core.Datastore
|
|||
|
||||
public TModel Get(int id)
|
||||
{
|
||||
return Queryable.Single(c => c.OID == id);
|
||||
return Queryable.Single(c => c.Id == id);
|
||||
}
|
||||
|
||||
public TModel Insert(TModel model)
|
||||
|
@ -65,7 +65,7 @@ namespace NzbDrone.Core.Datastore
|
|||
|
||||
public TModel Upsert(TModel model)
|
||||
{
|
||||
if (model.OID == 0)
|
||||
if (model.Id == 0)
|
||||
{
|
||||
return ObjectDatabase.Insert(model);
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ namespace NzbDrone.Core.Datastore
|
|||
|
||||
public void Purge()
|
||||
{
|
||||
DeleteMany(Queryable.Select(c => c.OID));
|
||||
DeleteMany(Queryable.Select(c => c.Id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue