mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixable lint errors
This commit is contained in:
parent
ca01ed72db
commit
07bc54f4f4
@ -84,12 +84,12 @@ const CONFIG = {
|
|||||||
...constants,
|
...constants,
|
||||||
...server,
|
...server,
|
||||||
...database,
|
...database,
|
||||||
//...klicktipp,
|
// ...klicktipp,
|
||||||
...community,
|
...community,
|
||||||
//...email,
|
// ...email,
|
||||||
//...loginServer,
|
// ...loginServer,
|
||||||
//...webhook,
|
// ...webhook,
|
||||||
//...eventProtocol,
|
// ...eventProtocol,
|
||||||
...federation,
|
...federation,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,11 +12,10 @@ class GetTestApiResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Resolver()
|
@Resolver()
|
||||||
export class TestResolver {
|
export class TestResolver {
|
||||||
@Query(() => GetTestApiResult)
|
@Query(() => GetTestApiResult)
|
||||||
async test(): Promise<GetTestApiResult> {
|
async test(): Promise<GetTestApiResult> {
|
||||||
logger.info(`test api 1_0`)
|
logger.info(`test api 1_0`)
|
||||||
return new GetTestApiResult("1_0")
|
return new GetTestApiResult('1_0')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ async function main() {
|
|||||||
console.log(`FEDERATION_API=${CONFIG.FEDERATION_API}`)
|
console.log(`FEDERATION_API=${CONFIG.FEDERATION_API}`)
|
||||||
console.log(`configured: FEDERATION_DHT_TOPIC=${CONFIG.FEDERATION_DHT_TOPIC}`)
|
console.log(`configured: FEDERATION_DHT_TOPIC=${CONFIG.FEDERATION_DHT_TOPIC}`)
|
||||||
const { app } = await createServer()
|
const { app } = await createServer()
|
||||||
|
|
||||||
app.listen(CONFIG.FEDERATION_PORT, () => {
|
app.listen(CONFIG.FEDERATION_PORT, () => {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(`Server is running at http://localhost:${CONFIG.FEDERATION_PORT}`)
|
console.log(`Server is running at http://localhost:${CONFIG.FEDERATION_PORT}`)
|
||||||
|
|||||||
@ -8,10 +8,14 @@ const options = JSON.parse(readFileSync(CONFIG.LOG4JS_CONFIG, 'utf-8'))
|
|||||||
options.categories.backend.level = CONFIG.LOG_LEVEL
|
options.categories.backend.level = CONFIG.LOG_LEVEL
|
||||||
options.categories.apollo.level = CONFIG.LOG_LEVEL
|
options.categories.apollo.level = CONFIG.LOG_LEVEL
|
||||||
let filename: string = options.appenders.federation.filename
|
let filename: string = options.appenders.federation.filename
|
||||||
if(CONFIG.FEDERATION_DHT_TOPIC) {
|
if (CONFIG.FEDERATION_DHT_TOPIC) {
|
||||||
options.appenders.federation.filename = filename.replace('apiversion-%v', 'dht-'+CONFIG.FEDERATION_DHT_TOPIC).replace('%p', CONFIG.FEDERATION_PORT.toString())
|
options.appenders.federation.filename = filename
|
||||||
|
.replace('apiversion-%v', 'dht-' + CONFIG.FEDERATION_DHT_TOPIC)
|
||||||
|
.replace('%p', CONFIG.FEDERATION_PORT.toString())
|
||||||
} else {
|
} else {
|
||||||
options.appenders.federation.filename = filename.replace('%v', CONFIG.FEDERATION_API).replace('%p', CONFIG.FEDERATION_PORT.toString())
|
options.appenders.federation.filename = filename
|
||||||
|
.replace('%v', CONFIG.FEDERATION_API)
|
||||||
|
.replace('%p', CONFIG.FEDERATION_PORT.toString())
|
||||||
}
|
}
|
||||||
filename = options.appenders.access.filename
|
filename = options.appenders.access.filename
|
||||||
options.appenders.access.filename = filename.replace('%p', CONFIG.FEDERATION_PORT.toString())
|
options.appenders.access.filename = filename.replace('%p', CONFIG.FEDERATION_PORT.toString())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user