From 26ff535d4ec403b990853bc98c21aa320adf4c69 Mon Sep 17 00:00:00 2001 From: CalebRose Date: Mon, 10 Jun 2024 14:16:50 -0700 Subject: [PATCH] Changing sync to keep into account teams that removed recruits from their board --- managers/SyncManager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managers/SyncManager.go b/managers/SyncManager.go index f005978..80bfae4 100644 --- a/managers/SyncManager.go +++ b/managers/SyncManager.go @@ -95,7 +95,7 @@ func SyncRecruiting(timestamp structs.Timestamp) { for i := 0; i < len(recruitProfiles) && pointsPlaced; i++ { recruitTeamProfile := teamMap[strconv.Itoa(recruitProfiles[i].ProfileID)] - if recruitTeamProfile.TotalCommitments >= recruitTeamProfile.RecruitClassSize { + if recruitTeamProfile.TotalCommitments >= recruitTeamProfile.RecruitClassSize || (recruitProfiles[i].RemovedFromBoard && recruitProfiles[i].ScholarshipRevoked) { continue } if eligiblePointThreshold == 0 && recruitProfiles[i].Scholarship {