another test for #37

pull/42/head
tidusjar 9 years ago
parent 1d814cd76e
commit cd682cdff9

@ -78,8 +78,13 @@ namespace PlexRequests.Core
try try
{ {
var records = repo.GetAll(); var records = repo.GetAll();
requestedModels = records as RequestedModel[] ?? records.ToArray(); requestedModels = records as RequestedModel[] ?? records.ToArray();
}
catch (SqliteException)
{
// There is no requested table so they do not have an old version of the DB
return;
}
if (!requestedModels.Any()) if (!requestedModels.Any())
{ return; } { return; }
@ -90,12 +95,7 @@ namespace PlexRequests.Core
var id = jsonRepo.AddRequest(r); var id = jsonRepo.AddRequest(r);
result.Add(id); result.Add(id);
} }
}
catch (SqliteException)
{
// There is no requested table so they do not have an old version of the DB
return;
}
if (result.Any(x => x == -1)) if (result.Any(x => x == -1))
{ {

@ -75,7 +75,7 @@ namespace PlexRequests.UI
{ {
ServerFactory = "Microsoft.Owin.Host.HttpListener" ServerFactory = "Microsoft.Owin.Host.HttpListener"
}; };
options.Urls.Add($"http://+:{port}"); options.Urls.Add($"http://localhost:{port}/");
try try
{ {

Loading…
Cancel
Save