feat(server): Renamed the multiplier to a different key. Left the key with the currency-to-unit ratio untouched
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:
Данил 2024-12-22 21:22:03 +03:00
parent b80015a6c3
commit 71759fb98f

View file

@ -19,7 +19,7 @@ async function getDay(from_currency, conv_currency, date, conv_amount) {
let conv_rate = data?.['rows'][0]['rate'] * conv_amount; let conv_rate = data?.['rows'][0]['rate'] * conv_amount;
const point = conv_rate.toString().indexOf('.') + 4; const point = conv_rate.toString().indexOf('.') + 4;
data['rows'][0]['rate'] = Number(conv_rate.toString().slice(0, point)); data['rows'][0]['conv_amount'] = Number(conv_rate.toString().slice(0, point));
} }
logger.debug(data['rows'][0]); logger.debug(data['rows'][0]);