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

Inaccurate event timestamp check #12

Open
Spaghetti657 opened this issue Oct 14, 2019 · 0 comments
Open

Inaccurate event timestamp check #12

Spaghetti657 opened this issue Oct 14, 2019 · 0 comments

Comments

@Spaghetti657
Copy link

Spaghetti657 commented Oct 14, 2019

Based on this article, it looks like only the first 8 characters of a Trello event ID contain the timestamp, but trello-events compares the entire ID when trying to determine whether an event is newer. I noticed the problem when my bot instance started posting the same event over and over again.

The fix is simple (line 76 in trello-events/index.js):
actionId = parseInt(boardActions[ix].id.slice(0, 8), 16);

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

No branches or pull requests

1 participant