Skip to content

Commit

Permalink
fix: fixed company query field
Browse files Browse the repository at this point in the history
  • Loading branch information
SohamGhugare committed Dec 22, 2023
1 parent 11c6511 commit e613f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/database/dbops/sponsorships.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetSponsorshipById(id int) (tables.Sponsorships, error) {
// get all spons associated with company name
func GetSponsorshipsByCompanyName(name string) ([]tables.Sponsorships, error) {
var spons []tables.Sponsorships
tx := database.DB.Find(&spons, "company_name = ?", name)
tx := database.DB.Find(&spons, "company = ?", name)
return spons, tx.Error
}

Expand Down

0 comments on commit e613f7c

Please sign in to comment.