diff --git a/go/pkg/yolostore/store.go b/go/pkg/yolostore/store.go index 4c8204b7..95e85b55 100644 --- a/go/pkg/yolostore/store.go +++ b/go/pkg/yolostore/store.go @@ -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 }