mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +01:00
Fix typescript miss use
This commit is contained in:
parent
a1a2e9363f
commit
87175869dd
@ -67,9 +67,9 @@ class PoolsParser {
|
||||
|
||||
// Get existing pools from the db
|
||||
const connection = await DB.pool.getConnection();
|
||||
let existingPools: any[] = [];
|
||||
let existingPools;
|
||||
try {
|
||||
existingPools = await connection.query<any>({ sql: 'SELECT * FROM pools;', timeout: 120000 });
|
||||
[existingPools] = await connection.query<any>({ sql: 'SELECT * FROM pools;', timeout: 120000 });
|
||||
} catch (e) {
|
||||
logger.err('Unable to get existing pools from the database, skipping pools.json import');
|
||||
connection.release();
|
||||
|
Loading…
Reference in New Issue
Block a user