Skip to content

Commit

Permalink
Fix: airlines is a list
Browse files Browse the repository at this point in the history
  • Loading branch information
boozec committed Jul 4, 2024
1 parent 6856711 commit f718be6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/handlers/acmesky/st_get_user_interests.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func STGetUserInterests(client worker.JobClient, job entities.Job) {

variables["interests"] = interests

var airlines models.Airline
var airlines []models.Airline
if err := db.Find(&airlines).Error; err != nil {
panic("can't find airlines")
}
Expand Down
2 changes: 1 addition & 1 deletion internal/job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func CreateClient(pid string) *zbc.Client {
log.Infof(response.String())

db, _ := db.GetDb()
var airlines models.Airline
var airlines []models.Airline
if err := db.Find(&airlines).Error; err != nil {
panic("can't find airlines")
}
Expand Down

0 comments on commit f718be6

Please sign in to comment.