Skip to content

Commit

Permalink
Changing sync to keep into account teams that removed recruits from t…
Browse files Browse the repository at this point in the history
…heir board
  • Loading branch information
CalebRose committed Jun 10, 2024
1 parent 593229c commit 26ff535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managers/SyncManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 26ff535

Please sign in to comment.