Add server configuration service and repo
This commit is contained in:
@@ -20,7 +20,10 @@ public class ProfileRepository(DatabaseContext dbContext) : IProfileRepository
|
||||
.Where(x => profileIds.Contains(x.ProfileId))
|
||||
.ToListAsync(ct);
|
||||
|
||||
public Task<Profile?> GetByPlatform(PlatformType platform, string platformId, CancellationToken ct = default)
|
||||
public Task<Profile?> GetByPlatform(
|
||||
PlatformType platform,
|
||||
string platformId,
|
||||
CancellationToken ct = default)
|
||||
=> dbContext.Profiles
|
||||
.FirstOrDefaultAsync(x =>
|
||||
x.Platform == platform &&
|
||||
|
||||
Reference in New Issue
Block a user