Commit- Fix transaction by date
This commit is contained in:
parent
824b04aa53
commit
1aa1754a3e
@ -828,8 +828,7 @@ LEFT JOIN (select block_id, count(block_id) as block_id_count from blockchain_ou
|
|||||||
) => {
|
) => {
|
||||||
try {
|
try {
|
||||||
const TransactionFeeRequestData: TransactionFeeDto = request.query;
|
const TransactionFeeRequestData: TransactionFeeDto = request.query;
|
||||||
if (TransactionFeeRequestData.Interval) {
|
if (TransactionFeeRequestData.Interval) {
|
||||||
console.log(TransactionFeeRequestData.Interval);
|
|
||||||
var timeIntervalQry =
|
var timeIntervalQry =
|
||||||
"blockchain_block.timestamp > current_date - interval '" +
|
"blockchain_block.timestamp > current_date - interval '" +
|
||||||
TransactionFeeRequestData.Interval +
|
TransactionFeeRequestData.Interval +
|
||||||
@ -899,10 +898,14 @@ LEFT JOIN (select block_id, count(block_id) as block_id_count from blockchain_ou
|
|||||||
totaloutput = [];
|
totaloutput = [];
|
||||||
|
|
||||||
TransactionHeatmapChartQuery.forEach(e => {
|
TransactionHeatmapChartQuery.forEach(e => {
|
||||||
date.push(moment(e.hour).format('YYYY-MM-DD'));
|
console.log(e)
|
||||||
totalinput.push(e.totalinput != null ? e.totalinput : 0);
|
if(moment(e.hour).format('YYYY-MM-DD') > moment('2019-09-02').format('YYYY-MM-DD'))
|
||||||
totalkernal.push(e.totalkernal != null ? e.totalkernal : 0);
|
{
|
||||||
totaloutput.push(e.totaloutput != null ? e.totaloutput : 0);
|
date.push(moment(e.hour).format('YYYY-MM-DD'));
|
||||||
|
totalinput.push(e.totalinput != null ? e.totalinput : 0);
|
||||||
|
totalkernal.push(e.totalkernal != null ? e.totalkernal : 0);
|
||||||
|
totaloutput.push(e.totaloutput != null ? e.totaloutput : 0);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
response.status(200).json({
|
response.status(200).json({
|
||||||
|
Loading…
Reference in New Issue
Block a user