Skip to content

Commit

Permalink
data: set upper limit for querying
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav committed Aug 22, 2024
1 parent e673e0f commit b22b70e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ func (t *AccountTable) ListByProjectAndIdentity(ctx context.Context, page Page,
if page.Limit <= 0 {
page.Limit = 25
}
if page.Limit > 100 {
page.Limit = 100
}

input := &dynamodb.QueryInput{
TableName: &t.tableARN,
Expand Down

0 comments on commit b22b70e

Please sign in to comment.