upd: update notes live on feed
This commit is contained in:
@@ -525,7 +525,9 @@ export class NoteEditService implements OnApplicationShutdown {
|
||||
// Pack the note
|
||||
const noteObj = await this.noteEntityService.pack(note);
|
||||
|
||||
this.globalEventService.publishNotesStream(noteObj);
|
||||
this.globalEventService.publishNoteStream(note.id, 'updated', {
|
||||
updatedAt: note.updatedAt!,
|
||||
});
|
||||
|
||||
this.roleService.addNoteToRoleTimeline(noteObj);
|
||||
|
||||
|
||||
@@ -142,6 +142,9 @@ export interface NoteStreamTypes {
|
||||
reaction: string;
|
||||
userId: MiUser['id'];
|
||||
};
|
||||
updated: {
|
||||
updatedAt: Date;
|
||||
}
|
||||
}
|
||||
type NoteStreamEventTypes = {
|
||||
[key in keyof NoteStreamTypes]: {
|
||||
|
||||
Reference in New Issue
Block a user