mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
parent
c4f57169ad
commit
59cf379d56
7 changed files with 16 additions and 12 deletions
|
@ -39,7 +39,7 @@ namespace PlexRequests.Store
|
|||
Config = config;
|
||||
}
|
||||
|
||||
private ISqliteConfiguration Config { get; set; }
|
||||
private ISqliteConfiguration Config { get; }
|
||||
public long Insert(T entity)
|
||||
{
|
||||
using (var cnn = Config.DbConnection())
|
||||
|
@ -65,7 +65,7 @@ namespace PlexRequests.Store
|
|||
{
|
||||
db.Open();
|
||||
var result = db.GetAll<T>();
|
||||
var selected = result.FirstOrDefault(x => x.User == id);
|
||||
var selected = result.FirstOrDefault(x => x.UserGuid == id);
|
||||
return selected;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue