Code Revolution: Consistency Takes Center Stage with Critical Transaction Update!
A game-changing fix to the onHubEvent method promises unparalleled reliability in event processing and database transactions!
Commit Details:
fix: Update onHubEvent to accept a txn for consistency (#2280) ## Why is this change needed? Process both the hub event and the messages in that event within the same db transaction. ## Merge Checklist _Choose all relevant options below by adding an `x` now or at any time before submitting for review_ - [x] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [x] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [ ] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the `onHubEvent` method in the `shuttle` package to accept a transaction for consistency. ### Detailed summary - Updated `onHubEvent` method in `shuttle` package to accept a transaction parameter - Updated method calls in `HubEventProcessor` to pass the transaction parameter for consistency > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->