This commit is contained in:
Ivan Grachyov
2025-12-26 23:36:21 +03:00
parent 0f218c1519
commit ca773a56c6
18 changed files with 315 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ import FastifyAutoLoad from '@fastify/autoload'
import FastifyCookie from '@fastify/cookie'
import FastifyCors from '@fastify/cors'
import Fastify from 'fastify'
import { chatInit } from './modules/chat/index.ts'
import prisma from './prisma/client.ts'
const __filename = fileURLToPath(import.meta.url)
@@ -43,6 +44,8 @@ fastify.register(FastifyAutoLoad, {
await prisma.$connect()
fastify.log.info('Testing DB Connection. OK')
await chatInit()
}
catch (err) {
fastify.log.error(err)