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

fix: Fix event:poll polling-interval #430

Merged
merged 3 commits into from
Nov 21, 2022
Merged

fix: Fix event:poll polling-interval #430

merged 3 commits into from
Nov 21, 2022

Conversation

congminh1254
Copy link
Member

Closes: #418 & SDK-2725

This bug relating to wrong field passed to Node SDK, and the timing unit in Node SDK is using milliseconds but not seconds.

@@ -20,7 +20,7 @@ class EventsPollCommand extends BoxCommand {
options.endDate = flags['end-date'];
}
if (flags['polling-interval']) {
options.pollingInterval = flags['polling-interval'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we differentiate here the enterprise flag enabled, where for getEnterpriseEventStream method we should pass pollingInterval param, and getEventStream method where we have fetchInterval?

I'm afraid that this change will fix getEventStream but will break getEnterpriseEventStream

@arjankowski arjankowski merged commit 9ada74b into main Nov 21, 2022
@arjankowski arjankowski deleted the sdk-2725 branch November 21, 2022 17:35
congminh1254 added a commit that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

event:poll for user-event ignores polling-interval
2 participants