feat: add validation to prevent users from starting multiple sections in progress

This commit is contained in:
2026-01-04 14:13:29 +03:30
parent 4ada29a98a
commit 0bfcde6a3f
4 changed files with 13 additions and 2 deletions

View File

@@ -13,4 +13,5 @@ public interface ITaskSectionRepository: IRepository<Guid,TaskSection>
Task<List<TaskSection>> GetAssignedToUserAsync(long userId);
Task<List<TaskSection>> GetActiveSectionsIncludeAllAsync(CancellationToken cancellationToken);
Task<bool> HasUserAnyInProgressSectionAsync(long userId, CancellationToken cancellationToken = default);
}