Skip to content

Commit

Permalink
Remove checkForOpenRooms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Elweyn committed Jun 27, 2024
1 parent 6b33d63 commit 1dffc46
Showing 1 changed file with 6 additions and 6 deletions.
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 1dffc46

Please sign in to comment.