Skip to content

Commit ebc8f29

Browse files
authored
Merge pull request #2721 from RedisInsight/be/bugfix/RI-5088-fix-scan-more-cursor
fix\add UTests
2 parents 2677d88 + 56d1fb3 commit ebc8f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/api/src/modules/browser/services/redisearch/redisearch.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export class RedisearchService {
198198
}
199199

200200
return plainToClass(GetKeysWithDetailsResponse, {
201-
cursor: limit + offset,
201+
cursor: limit + offset >= total ? 0 : limit + offset,
202202
total,
203203
scanned: keyNames.length + offset,
204204
keys: keyNames.map((name) => ({ name, type })),

0 commit comments

Comments
 (0)