--- issue: 020 title: "select-offer does not send per-seller socket events or notifications to winning or losing sellers" severity: major domain: Seller Offer labels: [bug, backend, major, notifications, socket] status: open created: 2026-05-29 source: Doc vs Code Audit 2026-05-29 --- # 🟠 select-offer does not send per-seller socket events or notifications to winning or losing sellers **Severity:** major **Domain:** Seller Offer **Labels:** bug, backend, major, notifications, socket ## Description POST /purchase-requests/:id/select-offer route (routes.ts lines 1300-1438) emits only a single purchase-request-update event to the request room. It does NOT call notifyOfferAccepted, does NOT call notifyOfferRejected for losing sellers, and does NOT emit seller-offer-update events. Those notifications only fire via SellerOfferService.updateOfferStatus(). ## Current Behavior After a buyer selects an offer via select-offer, the winning seller receives no notification and losing sellers receive no rejection notification. ## Expected Behavior The select-offer path should emit per-seller socket events and notifications equivalent to what SellerOfferService.acceptOffer() does — notify the winning seller and each losing seller. ## Affected Files - `backend/src/routes/routes.ts` ## References - [Doc vs Code Audit Report](../09%20-%20Audits/Doc%20vs%20Code%20Audit%20Report%20-%202026-05-29.md)