Skip to content

Commit

Permalink
fix: gorm syntax in yolo store
Browse files Browse the repository at this point in the history
Signed-off-by: Manfred Touron <[email protected]>
  • Loading branch information
moul committed Jun 25, 2021
1 parent 7168e96 commit e44164d
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 e44164d

Please sign in to comment.