Skip to content

Commit 92c5a2f

Browse files
committed
feat: increase project originality threshold to 60%
1 parent 08855f6 commit 92c5a2f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

InnoTrack.Application/Services/ProjectService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public async Task VerifyProjectForSubmissionAsync(int projectId, int userId, Sub
6262
if (team == null)
6363
throw new KeyNotFoundException("Team not found.");
6464

65+
if (draft.OriginalityScore == null || draft.OriginalityScore < 60)
66+
throw new InvalidOperationException("Project originality must be at least 60% before sending to a supervisor.");
67+
6568
var activeAcademicYear = await _unitOfWork.Repository<AcademicYear>()
6669
.FindAsync(y => y.IsActive);
6770
if (activeAcademicYear == null)

0 commit comments

Comments
 (0)