Remove duplicated db transaction

This commit is contained in:
nymkappa 2023-02-25 17:05:58 +09:00
parent 3d38064dbb
commit 2363a397f1
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -77,7 +77,6 @@ class PoolsUpdater {
await DB.query('START TRANSACTION;');
await poolsParser.migratePoolsJson();
await this.updateDBSha(githubSha);
await DB.query('START TRANSACTION;');
await DB.query('COMMIT;');
} catch (e) {
logger.err(`Could not migrate mining pools, rolling back. Reason: ${e instanceof Error ? e.message : e}`);