From 49b150bd3b7a251700786df36eec1a806cccf1d9 Mon Sep 17 00:00:00 2001 From: elweyn Date: Thu, 27 Jun 2024 13:15:55 +0200 Subject: [PATCH] Test without config check. --- backend/src/config/config.ts | 2 +- backend/src/index.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/src/config/config.ts b/backend/src/config/config.ts index 9329f7914d..b079b09a41 100644 --- a/backend/src/config/config.ts +++ b/backend/src/config/config.ts @@ -83,4 +83,4 @@ const validateConfig = () => { } } -validateConfig() +// validateConfig() diff --git a/backend/src/index.ts b/backend/src/index.ts index f11d901d70..58fe7f32b7 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -1,20 +1,20 @@ // eslint-disable-next-line import/no-unassigned-import import 'reflect-metadata' -// import { handleOpenRooms } from '#graphql/resolvers/dal/handleOpenRooms' +import { handleOpenRooms } from '#graphql/resolvers/dal/handleOpenRooms' import logger from './logger' import { prisma } from './prisma' import { listen } from './server/server' -// const checkForOpenRooms = (): void => { -// void handleOpenRooms() -// setTimeout(checkForOpenRooms, 60 * 1000) -// } +const checkForOpenRooms = (): void => { + void handleOpenRooms() + setTimeout(checkForOpenRooms, 60 * 1000) +} export const main = async (): Promise => { const url = await listen(4000) logger.info(`🚀 Server is ready at ${url}`) - // checkForOpenRooms() + checkForOpenRooms() } void main()