Commit- Fix transaction by date

This commit is contained in:
shunmugam 2019-10-17 11:27:08 +05:30
parent 1aa1754a3e
commit 8edcb4759b

View File

@ -827,6 +827,7 @@ LEFT JOIN (select block_id, count(block_id) as block_id_count from blockchain_ou
next: NextFunction, next: NextFunction,
) => { ) => {
try { try {
console.log("I am in")
const TransactionFeeRequestData: TransactionFeeDto = request.query; const TransactionFeeRequestData: TransactionFeeDto = request.query;
if (TransactionFeeRequestData.Interval) { if (TransactionFeeRequestData.Interval) {
var timeIntervalQry = var timeIntervalQry =
@ -898,6 +899,7 @@ LEFT JOIN (select block_id, count(block_id) as block_id_count from blockchain_ou
totaloutput = []; totaloutput = [];
TransactionHeatmapChartQuery.forEach(e => { TransactionHeatmapChartQuery.forEach(e => {
console.log("Chart data")
console.log(e) console.log(e)
if(moment(e.hour).format('YYYY-MM-DD') > moment('2019-09-02').format('YYYY-MM-DD')) if(moment(e.hour).format('YYYY-MM-DD') > moment('2019-09-02').format('YYYY-MM-DD'))
{ {