Updated voice work delete logic + tests.
This commit is contained in:
@@ -23,8 +23,10 @@ public class VoiceWorkWriter(AppDbContext dbContext) : IVoiceWorkWriter
|
||||
Dictionary<int, DeleteVoiceWorkStatus> results = request.VoiceWorkIds.Select(x => x)
|
||||
.ToDictionary(x => x, x => DeleteVoiceWorkStatus.NotFound);
|
||||
|
||||
VoiceWork[] voiceWorks = [.. dbContext.VoiceWorks.Where(voiceWork => request.VoiceWorkIds.Contains(voiceWork.VoiceWorkId))
|
||||
.Include(x => x.Circle)];
|
||||
VoiceWork[] voiceWorks = await dbContext.VoiceWorks
|
||||
.Where(voiceWork => request.VoiceWorkIds.Contains(voiceWork.VoiceWorkId))
|
||||
.Include(x => x.Circle)
|
||||
.ToArrayAsync(cancellationToken);
|
||||
|
||||
List<VoiceWork> voiceWorksToDelete = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user