Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete restriction for maxFetch #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.5 (June 25, 2021)

* Delete restriction ```maxFetch should be maximum 10000 objects``` for `Get New and Updated Objects Polling`

## 2.0.4 (February 12, 2021)

* Update sailor version to 2.6.24
Expand Down
1 change: 1 addition & 0 deletions component.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Salesforce v2",
"version": "2.0.5",
"description": "Customer relationship management (CRM) software & cloud computing from the leader in CRM solutions for businesses large & small.",
"docsUrl": "https://github.com/elasticio/salesforce-component-v2",
"url": "http://www.salesforce.com/",
Expand Down
4 changes: 2 additions & 2 deletions lib/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ module.exports.process = async function process(message, configuration, snapshot
if (configuration.sizeOfPollingPage) {
this.logger.debug('Current sizeOfPollingPage=%s, maxFetch=%s', configuration.sizeOfPollingPage, maxFetch);
const sizeOfPollingPage = parseInt(configuration.sizeOfPollingPage, 10);
if (sizeOfPollingPage && sizeOfPollingPage > 0 && sizeOfPollingPage <= 10000) {
if (sizeOfPollingPage && sizeOfPollingPage > 0) {
maxFetch = sizeOfPollingPage;
} else {
throw new Error('Size of Polling Page needs to be positive integer, max 10000 objects');
throw new Error('Size of Polling Page needs to be positive integer');
}
}

Expand Down
Loading