mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -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
|
@ -37,7 +37,7 @@ namespace NzbDrone.Core.Datastore
|
|||
|
||||
public T Insert<T>(T obj) where T : ModelBase
|
||||
{
|
||||
if (obj.OID != 0)
|
||||
if (obj.Id != 0)
|
||||
{
|
||||
throw new InvalidOperationException("Attempted to insert object with existing ID as new object");
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ namespace NzbDrone.Core.Datastore
|
|||
|
||||
public T Update<T>(T obj) where T : ModelBase
|
||||
{
|
||||
if (obj.OID == 0)
|
||||
if (obj.Id == 0)
|
||||
{
|
||||
throw new InvalidOperationException("Attempted to update object without an ID");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue