mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 05:34:03 +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
|
// Get existing pools from the db
|
||||||
const connection = await DB.pool.getConnection();
|
const connection = await DB.pool.getConnection();
|
||||||
let existingPools: any[] = [];
|
let existingPools;
|
||||||
try {
|
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) {
|
} catch (e) {
|
||||||
logger.err('Unable to get existing pools from the database, skipping pools.json import');
|
logger.err('Unable to get existing pools from the database, skipping pools.json import');
|
||||||
connection.release();
|
connection.release();
|
||||||
|
Loading…
Reference in New Issue
Block a user