Commit b25da05
committed
fix(billing): gate resolvePlan warn to metadata-absent case only
Copilot review finding on PR #3758: the previous warn fired whenever
priceId was present and metadata didn't validate, but the log message said
"metadata empty" — misleading when metadata IS present but invalid
(validatePlan already warns in that case → double-warn).
Gate: only emit the warn when rawMeta is also absent (!rawMeta), and update
the message from "metadata empty" to "no metadata" to be precise.1 parent 6ec833e commit b25da05
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
0 commit comments