From 0bd43b2e39c1317263d8681f7a78582474dcb671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus-Peter=20H=C3=BCbner?= Date: Mon, 13 Feb 2023 20:56:17 +0100 Subject: [PATCH] remove commented code --- dht-node/src/dht_node/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dht-node/src/dht_node/index.ts b/dht-node/src/dht_node/index.ts index dcbb222ee..dd25d8d81 100644 --- a/dht-node/src/dht_node/index.ts +++ b/dht-node/src/dht_node/index.ts @@ -201,12 +201,7 @@ async function writeHomeCommunityEnries(pubKey: any): Promise { try { // first remove privious existing homeCommunity entries DbCommunity.createQueryBuilder().delete().where({ foreign: false }).execute() - /* - const homeComs = await DbCommunity.find({ foreign: false }) - if (homeComs.length > 0) { - await DbCommunity.remove(homeComs) - } - */ + homeApiVersions.forEach(async function (homeApi) { const homeCom = new DbCommunity() homeCom.foreign = false