trellobot icon indicating copy to clipboard operation
trellobot copied to clipboard

Inaccurate event timestamp check

Open Spaghetti657 opened this issue 6 years ago • 0 comments

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);

Spaghetti657 avatar Oct 14 '19 18:10 Spaghetti657