mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 15:32:37 -07:00
Added some tests and fixed the issue where the DB would get created in the wrong place depending on how you launched the application
This commit is contained in:
parent
1f9ed51320
commit
e2aa4016a8
8 changed files with 221 additions and 35 deletions
|
@ -79,6 +79,10 @@ namespace PlexRequests.Core
|
|||
public RequestedModel Get(int id)
|
||||
{
|
||||
var blob = Repo.Get(id);
|
||||
if (blob == null)
|
||||
{
|
||||
return new RequestedModel();
|
||||
}
|
||||
var model = ByteConverterHelper.ReturnObject<RequestedModel>(blob.Content);
|
||||
return model;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue