Skip to content

Commit

Permalink
Merge pull request #271 from forcedotcom/develop
Browse files Browse the repository at this point in the history
2.9.4
  • Loading branch information
WillieRuemmele authored Aug 7, 2020
2 parents c9dc5a0 + 5e313a8 commit c9bac46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ export class Connection extends JSForceConnection {
.on('record', rec => records.push(rec))
.on('error', err => reject(err))
.on('end', () => {
const totalSize = getNumber(query, 'totalSize') || maxFetch;
const totalSize = getNumber(query, 'totalSize') || 0;
if (totalSize > records.length) {
process.emitWarning(
`The query result is missing ${totalSize -
records.length} records due to a 10,000 limit for performance reasons. Increase the number of records returned by setting the config value "maxQueryLimit" or the environment variable "SFDX_MAX_QUERY_LIMIT" to ${totalSize} or greater than 10,000.`
records.length} records due to a ${maxFetch} record limit. Increase the number of records returned by setting the config value "maxQueryLimit" or the environment variable "SFDX_MAX_QUERY_LIMIT" to ${totalSize} or greater than ${maxFetch}.`
);
this._logger.warn(
`The query: ${soql} result is missing ${totalSize - records.length} records due to an API limit.`
Expand Down

0 comments on commit c9bac46

Please sign in to comment.