Skip to content

Commit

Permalink
move default options to bulkQuery fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Oct 13, 2023
1 parent 1619f55 commit 9289fd6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/salesforce/src/Adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ export function query(qs) {
};
}

const defaultOptions = {
pollTimeout: 90000, // in ms
pollInterval: 3000, // in ms
};
/**
* Execute an SOQL Bulk Query.
* This function uses bulk query to efficiently query large data sets and reduce the number of API requests.
Expand All @@ -198,6 +194,10 @@ const defaultOptions = {
* @returns {Operation}
*/
export function bulkQuery(qs, options, callback) {
const defaultOptions = {
pollTimeout: 90000, // in ms
pollInterval: 3000, // in ms
};
return async state => {
const { connection } = state;
const [resolvedQs, resolvedOptions] = newExpandReferences(
Expand Down

0 comments on commit 9289fd6

Please sign in to comment.