From c2f5cb95290a020fc7f72912c24e3916f5558e18 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Thu, 16 Feb 2023 09:09:14 +0900 Subject: [PATCH] Update pool parser to work with no database --- backend/src/api/pools-parser.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/api/pools-parser.ts b/backend/src/api/pools-parser.ts index 7632f1207..f322578cb 100644 --- a/backend/src/api/pools-parser.ts +++ b/backend/src/api/pools-parser.ts @@ -16,6 +16,11 @@ class PoolsParser { public setMiningPools(pools): void { this.miningPools = pools; + for (const pool of this.miningPools) { + pool.regexes = JSON.stringify(pool.tags); + pool.addresses = JSON.stringify(pool.addresses); + delete pool.tags; + } } /**