Changing greater than symbol to greater than or equals logic in cosmos statestore

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
This commit is contained in:
Ryan Lettieri 2022-09-23 14:27:06 -06:00
parent 93708273d4
commit 02645149b5
1 changed files with 2 additions and 2 deletions

View File

@ -174,12 +174,12 @@ func (q *Query) execute(client *azcosmos.ContainerClient) ([]state.QueryItem, st
if err != nil {
return nil, "", err
}
if (len(items) + 1) > resultLimit {
if len(items) >= resultLimit {
break
}
items = append(items, tempItem)
}
if (len(items) + 1) > resultLimit {
if len(items) >= resultLimit {
break
}
}