Skip to content

Commit

Permalink
連合なしアンケートのUpdateがリモートに配信されてしまうのを修正 (#177)
Browse files Browse the repository at this point in the history
Co-authored-by: MeiMei <[email protected]>
  • Loading branch information
riku6460 and mei23 authored Oct 7, 2023
1 parent 99e14d3 commit 61246e8
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 61246e8

Please sign in to comment.