bug fix
This commit is contained in:
parent
607a53f1be
commit
db0b8341ae
@ -8656,6 +8656,7 @@ Bitcoin.Util = {
|
|||||||
for(app in floGlobals.applicationList){
|
for(app in floGlobals.applicationList){
|
||||||
var promise = new Promise((res,rej) => {
|
var promise = new Promise((res,rej) => {
|
||||||
compactIDB.readData("appSubAdmins", app).then(subAdmins => {
|
compactIDB.readData("appSubAdmins", app).then(subAdmins => {
|
||||||
|
if(!Array.isArray(subAdmins)) subAdmins = []
|
||||||
compactIDB.readData("lastTx",floGlobals.applicationList[app]).then(lastTx => {
|
compactIDB.readData("lastTx",floGlobals.applicationList[app]).then(lastTx => {
|
||||||
floBlockchainAPI.readData(floGlobals.applicationList[app],{ignoreOld:lastTx,sentOnly:true,pattern:app}).then(result => {
|
floBlockchainAPI.readData(floGlobals.applicationList[app],{ignoreOld:lastTx,sentOnly:true,pattern:app}).then(result => {
|
||||||
for(var i = result.data.length-1; i>=0; i--){
|
for(var i = result.data.length-1; i>=0; i--){
|
||||||
@ -8665,7 +8666,7 @@ Bitcoin.Util = {
|
|||||||
if(Array.isArray(content.addSubAdmin))
|
if(Array.isArray(content.addSubAdmin))
|
||||||
subAdmins = subAdmins.concat(content.addSubAdmin)
|
subAdmins = subAdmins.concat(content.addSubAdmin)
|
||||||
}
|
}
|
||||||
compactIDB.writeData("lastTx", result.totalTxs, floGlobals.adminID);
|
compactIDB.writeData("lastTx", result.totalTxs, floGlobals.applicationList[app]);
|
||||||
compactIDB.writeData("appSubAdmins", subAdmins, app)
|
compactIDB.writeData("appSubAdmins", subAdmins, app)
|
||||||
.then(result => res(app))
|
.then(result => res(app))
|
||||||
.catch(error => rej(error))
|
.catch(error => rej(error))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user