Files
sim/apps
Waleed cb63ecaefb fix(inbox): disable the inbox atomically and simplify its webhook tests (#6441)
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.
2026-08-08 13:42:41 -07:00
..