mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
disableInbox deleted the webhook row and cleared the workspace columns as two independent statements. Now that inbox_provider_id is uniquely indexed, a half-applied disable strands the id of an AgentMail inbox that no longer exists, and the next workspace to claim that address cannot enable at all. Wrap both writes in one transaction. The receiver's tests also hand-rolled a table fixture that schemaMock already provides and queued rows the shared mock returns by default. Drop both, and assert the routed inbox id on the unknown-inbox case so it fails against a revert.