one more small fix for meta service after testing live

This commit is contained in:
RaidMax 2019-02-22 19:37:53 -06:00
parent de69bed792
commit 1457b843e2

View File

@ -41,11 +41,11 @@ namespace SharedLibraryCore.Services
}
}
public Task<EFMeta> GetPersistentMeta(string metaKey, EFClient client)
public async Task<EFMeta> GetPersistentMeta(string metaKey, EFClient client)
{
using (var ctx = new DatabaseContext(disableTracking:true))
{
return ctx.EFMeta
return await ctx.EFMeta
.Where(_meta => _meta.Key == metaKey)
.Where(_meta => _meta.ClientId == client.ClientId)
.FirstOrDefaultAsync();