Skip to content

Commit c4b25af

Browse files
author
Micah Riggan
committed
Only adding limit if there's one set. Defaulting to no limit
1 parent 5bd6e53 commit c4b25af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/bitcore-node/src/services/storage.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export class StorageService {
140140
options.sort = Object.assign({}, originalOptions.sort, { [originalOptions.paging]: -1 });
141141
}
142142
}
143-
options.limit = originalOptions.limit === undefined ? 100 : originalOptions.limit;
143+
if (originalOptions.limit !== undefined) {
144+
options.limit = originalOptions.limit;
145+
}
144146
return { query, options };
145147
}
146148

0 commit comments

Comments
 (0)