chat WIP
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user