Skip to content

Commit

Permalink
from block first non validated event
Browse files Browse the repository at this point in the history
  • Loading branch information
Villaquiranm committed Oct 15, 2024
1 parent f4a2a1f commit 215c7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gno_github_agent/clientql/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 215c7d9

Please sign in to comment.