mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
feat(server): Added a parameter to multiply the rate by X number (conv_amount)
This commit is contained in:
parent
c2720114c4
commit
b80015a6c3
2 changed files with 10 additions and 1 deletions
|
@ -18,6 +18,7 @@ module.exports = async function getRateRoute(fastify) {
|
|||
query['from_currency'],
|
||||
query['conv_currency'],
|
||||
query['date'],
|
||||
query['conv_amount'] ? query['conv_amount'] : 1
|
||||
);
|
||||
else if (query['start_date'] && query['end_date'])
|
||||
rate_res = await rate.getPeriod(
|
||||
|
|
Loading…
Add table
Reference in a new issue