mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 17:00:19 +01:00
update stream.ts
This commit is contained in:
parent
3945175ac7
commit
b2f27e9b4e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue