Reload the settings #1464 #865

pull/1510/head
Jamie.Rees 7 years ago
parent 0e6462bbd5
commit ba2fd48067

@ -61,7 +61,10 @@ namespace Ombi.Store.Repository
public async Task<GlobalSettings> GetAsync(string settingsName)
{
return await Db.Settings.FirstOrDefaultAsync(x => x.SettingsName == settingsName);
var obj = await Db.Settings.FirstOrDefaultAsync(x => x.SettingsName == settingsName);
Db.Entry(obj).Reload();
return obj;
}
public async Task DeleteAsync(GlobalSettings entity)

Loading…
Cancel
Save