From 71c4d0597197409aeaec128ec974cd67692c2cc3 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Sep 2019 13:48:33 +0530 Subject: [PATCH] block interval updated --- server/controllers/BlockchainBlock.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/controllers/BlockchainBlock.ts b/server/controllers/BlockchainBlock.ts index 85ef33f..c610913 100644 --- a/server/controllers/BlockchainBlock.ts +++ b/server/controllers/BlockchainBlock.ts @@ -1716,7 +1716,7 @@ export class BlockchainBlockController { request.query; if (BlockchainBlockPerSecondData.Interval) { var timeIntervalQry = - "timestamp > current_date - interval '" + + "timestamp > (current_date-1) - interval '" + BlockchainBlockPerSecondData.Interval + "'"; } else if ( @@ -1733,7 +1733,7 @@ export class BlockchainBlockController { var timeIntervalQry = 'timestamp BETWEEN SYMMETRIC ' + fromdate + ' AND ' + todate; } else { - var timeIntervalQry = "timestamp > current_date - interval '30 days'"; + var timeIntervalQry = "timestamp > (current_date-1) - interval '30 days'"; } const BlockchainBlockPerSecondQuery = await getConnection(Global.network) .query(