mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
fixed some broken tests.
This commit is contained in:
@@ -64,7 +64,7 @@ namespace NzbDrone.Core.Datastore
|
||||
|
||||
public int Count()
|
||||
{
|
||||
return _dataMapper.Query<TModel>().Count();
|
||||
return _dataMapper.Query<TModel>().GetRowCount();
|
||||
}
|
||||
|
||||
public TModel Get(int id)
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace NzbDrone.Core.Datastore.Converters
|
||||
|
||||
public object ToDB(object clrValue)
|
||||
{
|
||||
if (clrValue != null)
|
||||
if (clrValue != null && clrValue != DBNull.Value)
|
||||
{
|
||||
return ((DateTime)clrValue).ToUniversalTime();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user