работаем бля работаем

This commit is contained in:
2026-05-09 03:21:44 +06:00
parent f845777bac
commit 0b148c6a7d
169 changed files with 15816 additions and 1005 deletions

View File

@@ -1,7 +1,8 @@
import type { FastifyPluginAsync } from 'fastify'
import type { Type } from 'typebox'
import type { UserSchema } from '../schemas/auth.ts'
import type { ChatMessageSchema } from '../schemas/chat.ts'
import type { Channel } from '../prisma/generated-client/client.ts'
import type { UserSchema } from './schemas/auth.ts'
import type { ChatMessageSchema } from './schemas/chat.ts'
import { EventEmitter } from 'node:events'
import fp from 'fastify-plugin'
@@ -14,6 +15,8 @@ declare module 'fastify' {
interface EventMap {
'chat:new-message': [Type.Static<typeof ChatMessageSchema>]
'user:profile-updated': [Type.Static<typeof UserSchema>]
'channel:created': [Channel]
'channel:removed': [Channel]
}
const plugin: FastifyPluginAsync = fp(async (fastify) => {