Skip to content

Commit

Permalink
feat: #134 add limit of 10 for missing info provided
Browse files Browse the repository at this point in the history
  • Loading branch information
ewagmig committed Jul 11, 2019
1 parent b44c47a commit 1372afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/missing.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ func RetrieveMissings(chainID, validator string) ([]*Missing, error) {
}

var missings = make([]*Missing, 0)
return missings, x.Where("validator_address = ?", validator).OrderBy("created_at_unix desc").Find(&missings)
return missings, x.Where("validator_address = ?", validator).OrderBy("created_at_unix desc").Limit(10, 0).Find(&missings)
}

0 comments on commit 1372afa

Please sign in to comment.