Commit b347c8a
committed
fix(vendors): POST upsert replaces metadata on conflict (CodeRabbit)
ON CONFLICT was the one column omitted from the full-overwrite upsert, so a
re-POST kept stale metadata — contradicting the documented "full representation"
contract. Add `metadata = EXCLUDED.metadata` and assert the clobber (set then
reset) in the route spec.
https://claude.ai/code/session_015mkdG1VYH3AdqLe4E3i9H61 parent e6f5a25 commit b347c8a
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
108 | 110 | | |
109 | | - | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
0 commit comments