From 078a3af0512be04b53a18e694703a226474e6542 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Wed, 25 May 2022 04:14:09 +0530 Subject: [PATCH] Update market.js - Removed floID field returned by get-transact API (as its already filtered by floID) --- src/market.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/market.js b/src/market.js index 23e01c5..705137e 100644 --- a/src/market.js +++ b/src/market.js @@ -256,10 +256,10 @@ function getAccountDetails(floID) { function getUserTransacts(floID) { return new Promise((resolve, reject) => { - DB.query("(SELECT 'deposit' as type, txid, floID, token, amount, status FROM InputToken WHERE floID=?)" + - "UNION (SELECT 'deposit' as type, txid, floID, 'FLO' as token, amount, status FROM InputFLO WHERE floID=?)" + - "UNION (SELECT 'withdraw' as type, txid, floID, token, amount, status FROM OutputToken WHERE floID=?)" + - "UNION (SELECT 'withdraw' as type, txid, floID, 'FLO' as token, amount, status FROM OutputFLO WHERE floID=?)", + DB.query("(SELECT 'deposit' as type, txid, token, amount, status FROM InputToken WHERE floID=?)" + + "UNION (SELECT 'deposit' as type, txid, 'FLO' as token, amount, status FROM InputFLO WHERE floID=?)" + + "UNION (SELECT 'withdraw' as type, txid, token, amount, status FROM OutputToken WHERE floID=?)" + + "UNION (SELECT 'withdraw' as type, txid, 'FLO' as token, amount, status FROM OutputFLO WHERE floID=?)", [floID, floID, floID, floID]) .then(result => resolve(result)) .catch(error => reject(error))