From 383633873dea318cb9783fc2228ddf6e7892350e Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Tue, 1 Apr 2025 10:12:59 -0400 Subject: fix backend type errors --- packages/backend/src/server/api/stream/channels/chat-room.ts | 6 +++++- packages/backend/src/server/api/stream/channels/chat-user.ts | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'packages/backend/src/server/api/stream') diff --git a/packages/backend/src/server/api/stream/channels/chat-room.ts b/packages/backend/src/server/api/stream/channels/chat-room.ts index eda333dd30..648e407569 100644 --- a/packages/backend/src/server/api/stream/channels/chat-room.ts +++ b/packages/backend/src/server/api/stream/channels/chat-room.ts @@ -8,6 +8,7 @@ import { bindThis } from '@/decorators.js'; import type { GlobalEvents } from '@/core/GlobalEventService.js'; import type { JsonObject } from '@/misc/json-value.js'; import { ChatService } from '@/core/ChatService.js'; +import { NoteEntityService } from '@/core/entities/NoteEntityService.js'; import Channel, { type MiChannelService } from '../channel.js'; class ChatRoomChannel extends Channel { @@ -22,8 +23,9 @@ class ChatRoomChannel extends Channel { id: string, connection: Channel['connection'], + noteEntityService: NoteEntityService, ) { - super(id, connection); + super(id, connection, noteEntityService); } @bindThis @@ -64,6 +66,7 @@ export class ChatRoomChannelService implements MiChannelService { constructor( private chatService: ChatService, + private readonly noteEntityService: NoteEntityService, ) { } @@ -73,6 +76,7 @@ export class ChatRoomChannelService implements MiChannelService { this.chatService, id, connection, + this.noteEntityService, ); } } diff --git a/packages/backend/src/server/api/stream/channels/chat-user.ts b/packages/backend/src/server/api/stream/channels/chat-user.ts index 5323484ed7..b37aef29d1 100644 --- a/packages/backend/src/server/api/stream/channels/chat-user.ts +++ b/packages/backend/src/server/api/stream/channels/chat-user.ts @@ -8,6 +8,7 @@ import { bindThis } from '@/decorators.js'; import type { GlobalEvents } from '@/core/GlobalEventService.js'; import type { JsonObject } from '@/misc/json-value.js'; import { ChatService } from '@/core/ChatService.js'; +import { NoteEntityService } from '@/core/entities/NoteEntityService.js'; import Channel, { type MiChannelService } from '../channel.js'; class ChatUserChannel extends Channel { @@ -22,8 +23,9 @@ class ChatUserChannel extends Channel { id: string, connection: Channel['connection'], + noteEntityService: NoteEntityService, ) { - super(id, connection); + super(id, connection, noteEntityService); } @bindThis @@ -64,6 +66,7 @@ export class ChatUserChannelService implements MiChannelService { constructor( private chatService: ChatService, + private readonly noteEntityService: NoteEntityService, ) { } @@ -73,6 +76,7 @@ export class ChatUserChannelService implements MiChannelService { this.chatService, id, connection, + this.noteEntityService, ); } } -- cgit v1.2.3-freya