Use outbox for edit_thought instead of fire-and-forget publish #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium
crates/application/src/use_cases/thoughts/mod.rs:create_thoughtusesoutbox.append()(reliable, persisted)delete_thoughtusesoutbox.append()(reliable, persisted)edit_thoughtusesevents.publish()directly (fire-and-forget via NATS)The
_eventsparameter increate_thoughtis unused (underscore-prefixed), andedit_thoughtbypasses the outbox entirely. If NATS is down during an edit, the update event is silently lost. All three should use the outbox for consistency.