This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -23,7 +23,7 @@ import {
ReversiGameStreamTypes,
ReversiStreamTypes,
UserListStreamTypes,
UserStreamTypes
UserStreamTypes,
} from '@/server/api/stream/types';
import { Packed } from '@/misc/schema';
@@ -35,7 +35,7 @@ class Publisher {
redisClient.publish(config.host, JSON.stringify({
channel: channel,
message: message
message: message,
}));
};
@@ -62,7 +62,7 @@ class Publisher {
public publishNoteStream = <K extends keyof NoteStreamTypes>(noteId: Note['id'], type: K, value?: NoteStreamTypes[K]): void => {
this.publish(`noteStream:${noteId}`, type, {
id: noteId,
body: value
body: value,
});
};