Skip to content

Commit 56d1fb3

Browse files
author
Artem
committed
fix\add UTests
1 parent 2677d88 commit 56d1fb3

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)