mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
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
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:
parent
b80015a6c3
commit
71759fb98f
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue