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