Skip to content

Commit

Permalink
Preload capsheet with NFL Call
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRose committed May 13, 2024
1 parent 9c0309b commit 13e45ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managers/TeamManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func GetTeamByTeamID(teamId string) structs.CollegeTeam {
func GetAllNFLTeams() []structs.NFLTeam {
var teams []structs.NFLTeam
db := dbprovider.GetInstance().GetDB()
err := db.Order("team_name asc").Find(&teams).Error
err := db.Preload("Capsheet").Order("team_name asc").Find(&teams).Error
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 13e45ed

Please sign in to comment.