mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
#387 trim the spaces from the api key. Tidied up the setting models a bit.
This commit is contained in:
parent
c5ad97780f
commit
6392ee0bde
18 changed files with 287 additions and 297 deletions
|
@ -30,7 +30,6 @@ using Newtonsoft.Json;
|
|||
|
||||
using PlexRequests.Core.SettingModels;
|
||||
using PlexRequests.Helpers;
|
||||
using PlexRequests.Store;
|
||||
using PlexRequests.Store.Models;
|
||||
using PlexRequests.Store.Repository;
|
||||
|
||||
|
@ -46,8 +45,8 @@ namespace PlexRequests.Core
|
|||
EntityName = typeof(T).Name;
|
||||
}
|
||||
|
||||
private ISettingsRepository Repo { get; set; }
|
||||
private string EntityName { get; set; }
|
||||
private ISettingsRepository Repo { get; }
|
||||
private string EntityName { get; }
|
||||
|
||||
public T GetSettings()
|
||||
{
|
||||
|
@ -78,7 +77,7 @@ namespace PlexRequests.Core
|
|||
public bool SaveSettings(T model)
|
||||
{
|
||||
var entity = Repo.Get(EntityName);
|
||||
|
||||
|
||||
if (entity == null)
|
||||
{
|
||||
var newEntity = model;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue