Skip to content

Commit

Permalink
When FA is locked, everything is on lockdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRose committed Jan 30, 2024
1 parent 3c1eee0 commit 730e409
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions managers/FreeAgencyManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ func CreateFAOffer(offer structs.FreeAgencyOfferDTO) structs.FreeAgencyOffer {
func CancelOffer(offer structs.FreeAgencyOfferDTO) {
db := dbprovider.GetInstance().GetDB()

ts := GetTimestamp()
if ts.IsFreeAgencyLocked {
return
}

OfferID := strconv.Itoa(int(offer.ID))

freeAgentOffer := GetFreeAgentOfferByOfferID(OfferID)
Expand Down

0 comments on commit 730e409

Please sign in to comment.