Commit 91608df
committed
fix(inbox-worker): don't Nak on a CountDocuments failure after the status write commits
Per PR #363 review: in UpdateUserStatus the guarded UpdateOne already commits the
status write before the MatchedCount==0 branch runs. That branch's CountDocuments is
only a logging aid (absent-account vs stale-event), so returning its error caused a
pointless Nak that re-ran the already-applied, idempotent write. Downgrade the
CountDocuments failure to a warn and continue (return nil) instead.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012X9qhQT4NwmCHjdndwNtFD1 parent 249c2de commit 91608df
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments