Skip to content

Commit

Permalink
fixed issue where cut contracts prevented capsheet generation
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRose committed Nov 19, 2024
1 parent 22bd51d commit a8bc6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managers/PlayerManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ func GetNFLPlayersWithContractsByTeamID(TeamID string) []structs.NFLPlayer {
var players []structs.NFLPlayer

db.Preload("Contract", func(db *gorm.DB) *gorm.DB {
return db.Where("is_active = true AND is_cut = false")
return db.Where("is_active = true")
}).Where("team_id = ?", TeamID).Find(&players)

return players
Expand Down

0 comments on commit a8bc6e4

Please sign in to comment.