mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
add series works again, now includes title.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user