mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
rework PR-comments
This commit is contained in:
parent
fa97a5ea8b
commit
58d66c40af
@ -1,5 +1,3 @@
|
||||
CONFIG_VERSION=v2.2023-02-03
|
||||
|
||||
# Database
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
|
||||
@ -44,11 +44,10 @@ const lookupResultMock = {
|
||||
token: Buffer.from(TEST_TOPIC),
|
||||
from: {
|
||||
id: Buffer.from('somone'),
|
||||
foreign: true,
|
||||
host: '188.95.53.5',
|
||||
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: [
|
||||
{
|
||||
publicKey: Buffer.from('some-public-key'),
|
||||
|
||||
@ -200,11 +200,13 @@ 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user