mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
fix currency EUR does not show in exchange rates data
This commit is contained in:
@@ -50,5 +50,10 @@ func (a *ExchangeRatesApi) LatestExchangeRateHandler(c *core.Context) (interface
|
|||||||
return nil, errs.ErrFailedToRequestRemoteApi
|
return nil, errs.ErrFailedToRequestRemoteApi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
latestExchangeRateResponse.ExchangeRates = append(latestExchangeRateResponse.ExchangeRates, &models.LatestExchangeRate{
|
||||||
|
Currency: "EUR",
|
||||||
|
Rate: "1",
|
||||||
|
})
|
||||||
|
|
||||||
return latestExchangeRateResponse, nil
|
return latestExchangeRateResponse, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user