BE-002: Handle conflict in POST /devices/{id}/sync — on duplicate, skip row and count it¶
Track: 1 — MVP
Section: 1.1 Device Sync — Deduplication
Status: [ ] Todo
Repo: backend-api
Branch: feature/BE-002-sync-dedup-handling
Done When¶
Sync handler uses ON CONFLICT DO NOTHING. Response body includes { inserted: N, skipped: M }. Test: send same 10 data points twice → first call inserts 10, second call inserts 0, skipped 10
Notes¶
No notes yet.