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 0e6cd57 commit 3d5b65a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/PollService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ export class PollService {
const note = await this.notesRepository.findOneBy({ id: noteId });
if (note == null) throw new Error('note not found');

if (note.localOnly) return;

const user = await this.usersRepository.findOneBy({ id: note.userId });
if (user == null) throw new Error('note not found');

Expand Down

0 comments on commit 3d5b65a

Please sign in to comment.