From 215c7d9161a2c2dc28e38c77a4c2e53579dbbdca Mon Sep 17 00:00:00 2001 From: Miguel Victoria Date: Tue, 15 Oct 2024 20:43:32 +0200 Subject: [PATCH] from block first non validated event --- gno_github_agent/clientql/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gno_github_agent/clientql/client.go b/gno_github_agent/clientql/client.go index 2d416b08e7..c4521240ae 100644 --- a/gno_github_agent/clientql/client.go +++ b/gno_github_agent/clientql/client.go @@ -65,7 +65,7 @@ func (client *IndexerQL) DealWithVerifications() error { func (client *IndexerQL) getLastTreatedBlock() (int, error) { var verification db.Verification - err := client.db.Model(&db.Verification{}).Where("status = ?", string(db.VerificationStatusVerified)).Order("id desc").First(&verification).Error + err := client.db.Model(&db.Verification{}).Where("status != ?", string(db.VerificationStatusVerified)).Order("id asc").First(&verification).Error if err != nil { if errors.Is(err, gorm.ErrRecordNotFound) {