From e44164dab0fb45c6a22840c484f3f024bf7b7c90 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Fri, 25 Jun 2021 19:12:11 +0000 Subject: [PATCH] fix: gorm syntax in yolo store Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com> --- go/pkg/yolostore/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }