overdue code cleanup (#1271)

This commit is contained in:
Jason Dove
2023-05-10 13:18:18 -05:00
committed by GitHub
parent 6142dcf153
commit 03df2a6c8a
259 changed files with 1357 additions and 1312 deletions
@@ -19,7 +19,7 @@ public class DeleteProgramScheduleHandler : IRequestHandler<DeleteProgramSchedul
{
await using TvContext dbContext = _dbContextFactory.CreateDbContext();
Validation<BaseError, ProgramSchedule> validation = await ProgramScheduleMustExist(dbContext, request);
return await LanguageExtensions.Apply(validation, ps => DoDeletion(dbContext, ps));
return await validation.Apply(ps => DoDeletion(dbContext, ps));
}
private static Task<Unit> DoDeletion(TvContext dbContext, ProgramSchedule programSchedule)