Skip to content

Commit

Permalink
locks for recruiting
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRose committed Apr 24, 2024
1 parent a772035 commit a2a8b26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions managers/SyncManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func SyncRecruiting(timestamp structs.Timestamp) {

if !timestamp.IsRecruitingLocked {
timestamp.ToggleLockRecruiting()
db.Save(&timestamp)
}

if timestamp.RecruitingSynced {
Expand Down Expand Up @@ -220,6 +221,11 @@ func SyncRecruiting(timestamp structs.Timestamp) {

updateTeamRankings(teamRecruitingProfiles, teamMap, recruitProfilePointsMap, db)

if timestamp.IsRecruitingLocked {
timestamp.ToggleLockRecruiting()
db.Save(&timestamp)
}

}

func SyncRecruitingEfficiency(timestamp structs.Timestamp) {
Expand Down

0 comments on commit a2a8b26

Please sign in to comment.