rework PR-comments

This commit is contained in:
Claus-Peter Hübner 2023-02-13 20:53:38 +01:00
parent fa97a5ea8b
commit 58d66c40af
3 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,3 @@
CONFIG_VERSION=v2.2023-02-03
# Database # Database
DB_HOST=localhost DB_HOST=localhost
DB_PORT=3306 DB_PORT=3306

View File

@ -44,11 +44,10 @@ const lookupResultMock = {
token: Buffer.from(TEST_TOPIC), token: Buffer.from(TEST_TOPIC),
from: { from: {
id: Buffer.from('somone'), id: Buffer.from('somone'),
foreign: true,
host: '188.95.53.5', host: '188.95.53.5',
port: 63561, port: 63561,
}, },
to: { id: null, foreign: true, host: '83.53.31.27', port: 55723 }, to: { id: null, host: '83.53.31.27', port: 55723 },
peers: [ peers: [
{ {
publicKey: Buffer.from('some-public-key'), publicKey: Buffer.from('some-public-key'),

View File

@ -200,11 +200,13 @@ async function writeHomeCommunityEnries(pubKey: any): Promise<CommunityApi[]> {
}) })
try { try {
// first remove privious existing homeCommunity entries // first remove privious existing homeCommunity entries
DbCommunity.createQueryBuilder().delete().where({ foreign: false }).execute()
/*
const homeComs = await DbCommunity.find({ foreign: false }) const homeComs = await DbCommunity.find({ foreign: false })
if (homeComs.length > 0) { if (homeComs.length > 0) {
await DbCommunity.remove(homeComs) await DbCommunity.remove(homeComs)
} }
*/
homeApiVersions.forEach(async function (homeApi) { homeApiVersions.forEach(async function (homeApi) {
const homeCom = new DbCommunity() const homeCom = new DbCommunity()
homeCom.foreign = false homeCom.foreign = false