mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
Добавил дебаг лог
This commit is contained in:
parent
1b785f5acc
commit
98cb0aaad9
2 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
const pool = require('./postgresql.js');
|
||||
|
||||
const logger = require('../logger/main.js');
|
||||
|
||||
/**
|
||||
* Getting the currency exchange rate for a specific day
|
||||
|
@ -25,6 +25,8 @@ async function getDay(from_currency, conv_currency, date) {
|
|||
let set_date = data['rows'][0]['date']
|
||||
set_date = new Date(set_date.setDate(set_date.getDate() + 1));
|
||||
|
||||
logger.debug(data['rows'][0])
|
||||
|
||||
return data['rows'][0];
|
||||
}
|
||||
|
||||
|
@ -56,6 +58,8 @@ async function getPeriod(from_currency, conv_currency, start_date, end_date) {
|
|||
date = new Date(date.setDate(date.getDate() + 1));
|
||||
}
|
||||
|
||||
logger.debug(data['rows'])
|
||||
|
||||
return data['rows'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue