mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
configure camelcase exceptions
This commit is contained in:
parent
9157a57fb3
commit
ade05101e2
@ -185,6 +185,7 @@ module.exports = {
|
|||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
project: ['./tsconfig.json', '**/tsconfig.json'],
|
project: ['./tsconfig.json', '**/tsconfig.json'],
|
||||||
// this is to properly reference the referenced project database without requirement of compiling it
|
// this is to properly reference the referenced project database without requirement of compiling it
|
||||||
|
// eslint-disable-next-line camelcase
|
||||||
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
|
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -70,6 +70,7 @@ describe('validate Communities', () => {
|
|||||||
.into(DbFederatedCommunity)
|
.into(DbFederatedCommunity)
|
||||||
.values(variables1)
|
.values(variables1)
|
||||||
.orUpdate({
|
.orUpdate({
|
||||||
|
// eslint-disable-next-line camelcase
|
||||||
conflict_target: ['id', 'publicKey', 'apiVersion'],
|
conflict_target: ['id', 'publicKey', 'apiVersion'],
|
||||||
overwrite: ['end_point', 'last_announced_at'],
|
overwrite: ['end_point', 'last_announced_at'],
|
||||||
})
|
})
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { FederatedCommunity as DbFederatedCommunity } from '@entity/FederatedCom
|
|||||||
|
|
||||||
import { backendLogger as logger } from '@/server/logger'
|
import { backendLogger as logger } from '@/server/logger'
|
||||||
|
|
||||||
import { Client } from './client/Client'
|
import { FederationClient } from './client/FederationClient'
|
||||||
import { ApiVersionType } from './enum/apiVersionType'
|
import { ApiVersionType } from './enum/apiVersionType'
|
||||||
|
|
||||||
export function startValidateCommunities(timerInterval: number): void {
|
export function startValidateCommunities(timerInterval: number): void {
|
||||||
@ -37,7 +37,7 @@ export async function validateCommunities(): Promise<void> {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const client = Client.getInstance(dbCom)
|
const client = FederationClient.getInstance(dbCom)
|
||||||
const pubKey = await client?.getPublicKey()
|
const pubKey = await client?.getPublicKey()
|
||||||
if (pubKey && pubKey === dbCom.publicKey.toString()) {
|
if (pubKey && pubKey === dbCom.publicKey.toString()) {
|
||||||
await DbFederatedCommunity.update({ id: dbCom.id }, { verifiedAt: new Date() })
|
await DbFederatedCommunity.update({ id: dbCom.id }, { verifiedAt: new Date() })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user