Skip to content

Commit aa44b03

Browse files
authored
Merge pull request #423 from berty/dev/moul/fix-yolo-store
fix: gorm syntax in yolo store
2 parents 7168e96 + e44164d commit aa44b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/pkg/yolostore/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (s *store) CreateDownload(download *yolopb.Download) error {
203203
func (s *store) GetLastBuild(driver yolopb.Driver) (*yolopb.Build, error) {
204204
build := yolopb.Build{Driver: driver}
205205

206-
err := s.db.Order("finished_at desc").Where(build).Select("finished_at").First(build).Error
206+
err := s.db.Order("finished_at desc").Where(&build).Select("finished_at").First(&build).Error
207207
if err != nil {
208208
return nil, err
209209
}

0 commit comments

Comments
 (0)