remove commented code

This commit is contained in:
Claus-Peter Hübner 2023-02-13 20:56:17 +01:00
parent b0cd39c53a
commit 0bd43b2e39

View File

@ -201,12 +201,7 @@ async function writeHomeCommunityEnries(pubKey: any): Promise<CommunityApi[]> {
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