avoid fetch data already retrieved (last declaration) again and again

master
Schoumi 3 years ago
parent 9f59097c07
commit 8279392d37
  1. 1
      src/index.js

@ -171,6 +171,7 @@ async function getAllDeclaration(params, declarationList) {
if (exist) {
let lastSaved = declarationList.indexOf(accData.lastSaved)
if (lastSaved !== -1) lastPeriod = lastSaved
if (lastPeriod === 0) lastPeriod = -1
}
for (let i = lastPeriod; i >= 0; i--) {
try {

Loading…
Cancel
Save