fix: add an additional condition
All checks were successful
.NET Test Pipeline / build-and-test (push) Successful in 2m57s
Build and Deploy Docker Container / build-and-deploy (push) Successful in 3m36s

This commit is contained in:
Polianin Nikita 2024-10-27 07:14:30 +03:00
parent d8dbf1562f
commit f203ee71f0

View File

@ -155,7 +155,8 @@ internal partial class ScheduleSynchronizer(UberDbContext dbContext, IOptionsSna
l.IsEven == groupInfo.IsEven && l.IsEven == groupInfo.IsEven &&
l.DayOfWeek == groupInfo.Day && l.DayOfWeek == groupInfo.Day &&
l.PairNumber == groupInfo.Pair && l.PairNumber == groupInfo.Pair &&
l.Discipline?.Name == discipline.Name, l.Discipline?.Name == discipline.Name &&
l.Group?.Name == group.Name,
() => () =>
{ {
var lesson = new Lesson var lesson = new Lesson