update to game interface/integration for persistent stat data
This commit is contained in:
@ -193,6 +193,16 @@ namespace SharedLibraryCore.Services
|
||||
return await activePenaltiesIds.Select(ids => ids.Penalty).ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<List<EFPenalty>> GetActivePenaltiesByClientId(int clientId)
|
||||
{
|
||||
await using var context = _contextFactory.CreateContext(false);
|
||||
return await context.PenaltyIdentifiers
|
||||
.Where(identifier => identifier.Penalty.Offender.ClientId == clientId)
|
||||
.Select(identifier => identifier.Penalty)
|
||||
.Where(Filter)
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<List<EFPenalty>> ActivePenaltiesByRecentIdentifiers(int linkId)
|
||||
{
|
||||
await using var context = _contextFactory.CreateContext(false);
|
||||
|
Reference in New Issue
Block a user