#1462 #865 Had to refactor how we use notificaitons. So we now have more notification fields about the request

This commit is contained in:
Jamie.Rees 2017-07-05 13:04:26 +01:00
commit b52a57b117
21 changed files with 256 additions and 112 deletions

View file

@ -44,6 +44,9 @@ namespace Ombi.Store.Entities
public byte[] Salt { get; set; }
public UserType UserType { get; set; }
[NotMapped]
public string UserAlias => string.IsNullOrEmpty(Alias) ? Username : Alias;
[NotMapped]
public List<Claim> Claims {
get => JsonConvert.DeserializeObject<List<Claim>>(ClaimsSerialized, new ClaimConverter());

View file

@ -49,7 +49,9 @@ namespace Ombi.Store.Repository
public GlobalSettings Get(string pageName)
{
return Db.Settings.FirstOrDefault(x => x.SettingsName == pageName);
var entity = Db.Settings.FirstOrDefault(x => x.SettingsName == pageName);
Db.Entry(entity).Reload();
return entity;
}
public async Task<GlobalSettings> GetAsync(string settingsName)