fix(server): Fixed bug, if conv_amount was not specified, it was still shown in the response
Some checks are pending
Create and publish a Docker image / build-and-push-server (push) Waiting to run
Create and publish a Docker image / build-and-push-chart (push) Waiting to run
Create and publish a Docker image / build-and-push-CR (push) Waiting to run
Deploy docs / deploy (push) Waiting to run

This commit is contained in:
Данил 2025-01-02 13:36:13 +03:00
parent 2c5a80263b
commit e2cb35a880

View file

@ -18,7 +18,7 @@ module.exports = async function getRateRoute(fastify) {
query['from_currency'], query['from_currency'],
query['conv_currency'], query['conv_currency'],
query['date'], query['date'],
query['conv_amount'] ? query['conv_amount'] : 1 query['conv_amount'] ? query['conv_amount'] : 0
); );
else if (query['start_date'] && query['end_date']) else if (query['start_date'] && query['end_date'])
rate_res = await rate.getPeriod( rate_res = await rate.getPeriod(