Migrate pools.json to the database in one command - Updated latest pools.json file from Blockchain-Known-Pools master

This commit is contained in:
nymkappa
2022-01-06 02:26:07 +09:00
parent 4212a649f1
commit 1a22923cd8
4 changed files with 70 additions and 8 deletions

View File

@@ -25,7 +25,8 @@
"build": "npm run tsc",
"start": "node --max-old-space-size=2048 dist/index.js",
"start-production": "node --max-old-space-size=4096 dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"migrate-pools": "npm run tsc ; node dist/api/pools-parser.js"
},
"dependencies": {
"@mempool/bitcoin": "^3.0.3",

View File

@@ -350,4 +350,4 @@ class DatabaseMigration {
}
}
export default new DatabaseMigration();
export default new DatabaseMigration();

View File

@@ -25,6 +25,7 @@ import databaseMigration from './api/database-migration';
import poolsParser from './api/pools-parser';
import syncAssets from './sync-assets';
import icons from './api/liquid/icons';
import poolsParser from './api/pools-parser';
import { Common } from './api/common';
class Server {