Skip to content

Commit

Permalink
Test without config check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Elweyn committed Jun 27, 2024
1 parent 1dffc46 commit 49b150b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ const validateConfig = () => {
}
}

validateConfig()
// validateConfig()
12 changes: 6 additions & 6 deletions backend/src/index.ts
Original file line number Diff line number Diff line change
@@ -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<void> => {
const url = await listen(4000)
logger.info(`🚀 Server is ready at ${url}`)
// checkForOpenRooms()
checkForOpenRooms()
}

void main()
Expand Down

0 comments on commit 49b150b

Please sign in to comment.