move call for validate federation

This commit is contained in:
einhorn_b 2024-01-11 14:53:03 +01:00
parent b40dbf561e
commit 31283c5094

View File

@ -5,6 +5,8 @@ import { createServer } from './server/createServer'
async function main() {
const { app } = await createServer()
void startValidateCommunities(Number(CONFIG.FEDERATION_VALIDATE_COMMUNITY_TIMER))
// app listen don't return as long as the express server is running
app.listen(CONFIG.PORT, () => {
// eslint-disable-next-line no-console
console.log(`Server is running at http://localhost:${CONFIG.PORT}`)
@ -13,7 +15,6 @@ async function main() {
console.log(`GraphIQL available at http://localhost:${CONFIG.PORT}`)
}
})
void startValidateCommunities(Number(CONFIG.FEDERATION_VALIDATE_COMMUNITY_TIMER))
}
main().catch((e) => {