feat(server): Added a parameter to multiply the rate by X number (conv_amount)

This commit is contained in:
Данил 2024-12-22 21:01:57 +03:00
parent c2720114c4
commit b80015a6c3
2 changed files with 10 additions and 1 deletions

View file

@ -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(