Commit 71cf90b
authored
fix: use parse_decimal for CEL validation in seed-demo product types (#1273)
The CEL validation environment declares `amount` as StringType (for
arbitrary precision decimals). Use parse_decimal(amount) > 0.0 instead
of amount > 0 which fails with "no matching overload for _>_ applied
to (string, int)".
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>1 parent bcc8703 commit 71cf90b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
0 commit comments