Skip to content

Commit

Permalink
Merge pull request #423 from berty/dev/moul/fix-yolo-store
Browse files Browse the repository at this point in the history
fix: gorm syntax in yolo store
  • Loading branch information
moul authored Jun 25, 2021
2 parents 7168e96 + e44164d commit aa44b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/pkg/yolostore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (s *store) CreateDownload(download *yolopb.Download) error {
func (s *store) GetLastBuild(driver yolopb.Driver) (*yolopb.Build, error) {
build := yolopb.Build{Driver: driver}

err := s.db.Order("finished_at desc").Where(build).Select("finished_at").First(build).Error
err := s.db.Order("finished_at desc").Where(&build).Select("finished_at").First(&build).Error
if err != nil {
return nil, err
}
Expand Down

0 comments on commit aa44b03

Please sign in to comment.