diff --git a/src/services/stream.ts b/src/services/stream.ts index c21ccb4a74..2c308a1b54 100644 --- a/src/services/stream.ts +++ b/src/services/stream.ts @@ -25,7 +25,7 @@ import { UserListStreamTypes, UserStreamTypes } from '@/server/api/stream/types'; -import { PackedNote } from '@/models/repositories/note'; +import { Packed } from '@/misc/schema'; class Publisher { private publish = (channel: StreamChannels, type: string | null, value?: any): void => { @@ -98,7 +98,7 @@ class Publisher { this.publish(`reversiGameStream:${gameId}`, type, typeof value === 'undefined' ? null : value); } - public publishNotesStream = (note: PackedNote): void => { + public publishNotesStream = (note: Packed<'Note'>): void => { this.publish('notesStream', null, note); }