From 75064ad4c0d3e91939f57f8d804e68988500f7f3 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Sun, 6 Feb 2022 01:47:23 +0530 Subject: [PATCH] bug fix --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index e9fd93a..9f3da52 100644 --- a/src/main.js +++ b/src/main.js @@ -170,7 +170,7 @@ function readAppSubAdminListFromAPI(base) { for (let app in base.appList) { promises.push(new Promise((resolve, reject) => { floBlockchainAPI.readData(base.appList[app], { - ignoreOld: base.lastTx[`${app}_${base.appList[app]}`] || 0, + ignoreOld: base.lastTx[base.appList[app]] || 0, sentOnly: true, pattern: app }).then(result => { @@ -184,7 +184,7 @@ function readAppSubAdminListFromAPI(base) { }); base.appSubAdmins[app] = Array.from(subAdmins); Promise.allSettled([ - DB.setLastTx(`${app}_${base.appList[app]}`, result.totalTxs), + DB.setLastTx(base.appList[app], result.totalTxs), DB.setSubAdmin(app, base.appSubAdmins[app]) ]).then(results => { if (results.reduce((a, r) => r.status === "rejected" ? ++a : a, 0))