kipcole9 / money_sql

Money functions for the serialization of a money data type in Elixir
Other
27 stars 18 forks source link

Cast a map with the current structure but a nil amount #30

Closed treere closed 1 year ago

treere commented 1 year ago

Hi Kipcole9, I was using your library and I found out that when you cast a value like %{amount: "", currency: "EUR"} I get a nil.

When I do the same with %{amount: nil, currency: "EUR"} I get an error while I'm expecting a nil.

This PR fix this

Hi! Andrea

kipcole9 commented 1 year ago

Thanks very much for the report and PR. I have published ex_money_sql version 1.9.1 with the following changelog entry:

Bug Fixes

🥳🥳🥳🥳🥳