From f203ee71f02a9bd0f9738cba2e6246ee6c9a4e64 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sun, 27 Oct 2024 07:14:30 +0300 Subject: [PATCH] fix: add an additional condition --- Endpoint/Sync/ScheduleSynchronizer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Endpoint/Sync/ScheduleSynchronizer.cs b/Endpoint/Sync/ScheduleSynchronizer.cs index 20d1e5d..d6cee1f 100644 --- a/Endpoint/Sync/ScheduleSynchronizer.cs +++ b/Endpoint/Sync/ScheduleSynchronizer.cs @@ -155,7 +155,8 @@ internal partial class ScheduleSynchronizer(UberDbContext dbContext, IOptionsSna l.IsEven == groupInfo.IsEven && l.DayOfWeek == groupInfo.Day && l.PairNumber == groupInfo.Pair && - l.Discipline?.Name == discipline.Name, + l.Discipline?.Name == discipline.Name && + l.Group?.Name == group.Name, () => { var lesson = new Lesson