Commit- Fix transaction by date
This commit is contained in:
parent
8edcb4759b
commit
7a1adf66cc
@ -827,7 +827,6 @@ 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 =
|
||||||
@ -882,7 +881,7 @@ LEFT JOIN (select block_id, count(block_id) as block_id_count from blockchain_ke
|
|||||||
bk.block_id \
|
bk.block_id \
|
||||||
LEFT JOIN (select block_id, count(block_id) as block_id_count from blockchain_output where output_type != 'Coinbase' group by block_id) as bo \
|
LEFT JOIN (select block_id, count(block_id) as block_id_count from blockchain_output where output_type != 'Coinbase' group by block_id) as bo \
|
||||||
ON blockchain_block.hash = \
|
ON blockchain_block.hash = \
|
||||||
bo.block_id WHERE blockchain_block.height > 0 And " +
|
bo.block_id WHERE " +
|
||||||
timeIntervalQry +
|
timeIntervalQry +
|
||||||
" \
|
" \
|
||||||
GROUP BY blockchain_block.hash \
|
GROUP BY blockchain_block.hash \
|
||||||
@ -899,9 +898,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")
|
if(moment(e.hour).format('YYYY-MM-DD') >= moment('2019-09-02').format('YYYY-MM-DD'))
|
||||||
console.log(e)
|
|
||||||
if(moment(e.hour).format('YYYY-MM-DD') > moment('2019-09-02').format('YYYY-MM-DD'))
|
|
||||||
{
|
{
|
||||||
date.push(moment(e.hour).format('YYYY-MM-DD'));
|
date.push(moment(e.hour).format('YYYY-MM-DD'));
|
||||||
totalinput.push(e.totalinput != null ? e.totalinput : 0);
|
totalinput.push(e.totalinput != null ? e.totalinput : 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user