Skip to content

Commit

Permalink
ローカルのみの投稿はUpdateを配信しないように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Oct 7, 2023
1 parent 902747f commit 34733fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/note/polls/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export async function deliverQuestionUpdate(noteId: Note['id']) {
const note = await Notes.findOne(noteId);
if (note == null) throw new Error('note not found');

if (note.localOnly) return;

const user = await Users.findOne(note.userId);
if (user == null) throw new Error('note not found');

Expand Down

0 comments on commit 34733fb

Please # to comment.