Closed sarge1989 closed 1 week ago
Happens because in onInstanceCreate
if ( parentInstanceCount >= thresholds.startVote && !parentMessageSnap.get("isPollStarted") ) { await triggerAgents(snap) await despatchPoll(parentMessageRef) return parentMessageRef.update({ isPollStarted: true }) }
The isPollStarted is only updated at the end of despatchPoll, which means if messages come before despatchPoll ends, another round is fired off.
Happens because in onInstanceCreate
The isPollStarted is only updated at the end of despatchPoll, which means if messages come before despatchPoll ends, another round is fired off.