1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

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 9685a1af5c
commit 88e359bbdd

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();