From b22b70e9daf95f2c2a15fbf2aa5ad7b3ebb31fb3 Mon Sep 17 00:00:00 2001 From: Patryk Kalinowski Date: Thu, 22 Aug 2024 11:13:02 +0200 Subject: [PATCH] data: set upper limit for querying --- data/account.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/account.go b/data/account.go index 7fd56686..cafcbcfa 100644 --- a/data/account.go +++ b/data/account.go @@ -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,