From b2f27e9b4ec7bcac8bdd6e8c2a5b89811f4745b4 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 12 Sep 2021 23:14:50 +0900 Subject: [PATCH] update stream.ts --- src/services/stream.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }