diff --git a/constants/version.go b/constants/version.go index 895cf43..f4e6f46 100644 --- a/constants/version.go +++ b/constants/version.go @@ -1,6 +1,6 @@ package constants const ( - VERSION = "0.0.7" + VERSION = "0.0.8" CODENAME = "ogun" ) diff --git a/store/store.go b/store/store.go index efcface..1057f4f 100644 --- a/store/store.go +++ b/store/store.go @@ -90,7 +90,7 @@ func (s *Store) IsDelegationStateAvailable(delegate tezos.Address, cycle int64) func (s *Store) GetLastFetchedCycle() (int64, error) { var cycle int64 - if err := s.db.Select("cycle").Order("cycle desc").First(&cycle).Error; err != nil { + if err := s.db.Model(&StoredDelegationState{}).Select("cycle").Order("cycle desc").First(&cycle).Error; err != nil { if err == gorm.ErrRecordNotFound { return 0, nil }