update stream.ts
This commit is contained in:
parent
3945175ac7
commit
b2f27e9b4e
|
@ -25,7 +25,7 @@ import {
|
||||||
UserListStreamTypes,
|
UserListStreamTypes,
|
||||||
UserStreamTypes
|
UserStreamTypes
|
||||||
} from '@/server/api/stream/types';
|
} from '@/server/api/stream/types';
|
||||||
import { PackedNote } from '@/models/repositories/note';
|
import { Packed } from '@/misc/schema';
|
||||||
|
|
||||||
class Publisher {
|
class Publisher {
|
||||||
private publish = (channel: StreamChannels, type: string | null, value?: any): void => {
|
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);
|
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);
|
this.publish('notesStream', null, note);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue