Send currency to frontend

This commit is contained in:
Mikko Ahlroth 2019-05-30 15:29:29 +03:00
parent a9786d95cc
commit 5c7e52da5a

View file

@ -105,7 +105,8 @@ defmodule WeekBudget.API.Server do
uuid: secret,
init: Decimal.to_float(amount.amount),
amount: Decimal.to_float(true_amount.amount),
events: Enum.map(events, &serialize_event/1)
events: Enum.map(events, &serialize_event/1),
currency: amount.currency
}
end