diff --git a/src/entities/elastic-storage/block-data.js b/src/entities/elastic-storage/block-data.js index d52c667..2b7d22a 100644 --- a/src/entities/elastic-storage/block-data.js +++ b/src/entities/elastic-storage/block-data.js @@ -15,7 +15,7 @@ class BlockData extends ElasticData { storedUTxOs: Array - allUtxos: {string: UtxoType} + allUtxos: { [string]: UtxoType } inputsData: [] = [] diff --git a/src/entities/elastic-storage/elastic-storage-processor.js b/src/entities/elastic-storage/elastic-storage-processor.js index 6b9160d..3c836d9 100644 --- a/src/entities/elastic-storage/elastic-storage-processor.js +++ b/src/entities/elastic-storage/elastic-storage-processor.js @@ -262,7 +262,7 @@ class ElasticStorageProcessor implements StorageProcessor { async storeGenesisUtxos(utxos: Array) { // TODO: check bulk upload response this.logger.debug('storeGenesisUtxos: store utxos to "txio" index and create fake txs in "tx" index') - const chunk = this.lastChunk + 1 + const chunk = ++this.lastChunk const utxosObjs = utxos.map((utxo) => new UtxoData(utxo)) const txioBody = formatBulkUploadBody(utxosObjs, { @@ -331,7 +331,7 @@ class ElasticStorageProcessor implements StorageProcessor { const utxosToStore = [] const txInputsIds = [] const blockTxs = [] - const chunk = this.lastChunk + 1 + const chunk = ++this.lastChunk for (const block of blocks) { const txs = block.getTxs() if (txs.length > 0) {