mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-11 23:58:08 -05:00
one more small fix for meta service after testing live
This commit is contained in:
@ -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))
|
using (var ctx = new DatabaseContext(disableTracking:true))
|
||||||
{
|
{
|
||||||
return ctx.EFMeta
|
return await ctx.EFMeta
|
||||||
.Where(_meta => _meta.Key == metaKey)
|
.Where(_meta => _meta.Key == metaKey)
|
||||||
.Where(_meta => _meta.ClientId == client.ClientId)
|
.Where(_meta => _meta.ClientId == client.ClientId)
|
||||||
.FirstOrDefaultAsync();
|
.FirstOrDefaultAsync();
|
||||||
|
Reference in New Issue
Block a user