Skip to content

Commit 650aad0

Browse files
committed
fix: poll issue
1 parent 76068a7 commit 650aad0

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

platforms/evoting-api/src/services/PollService.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -172,22 +172,6 @@ export class PollService {
172172
return poll;
173173
}
174174

175-
176-
// Check if user is a member, admin, or participant of the group
177-
const group = await this.groupRepository
178-
.createQueryBuilder('group')
179-
.leftJoin('group.members', 'member')
180-
.leftJoin('group.admins', 'admin')
181-
.leftJoin('group.participants', 'participant')
182-
.where('group.id = :groupId', { groupId: poll.groupId })
183-
.andWhere('(member.id = :userId OR admin.id = :userId OR participant.id = :userId)', { userId })
184-
.getOne();
185-
186-
// If user is not in the group, don't show the poll
187-
if (!group) {
188-
return null;
189-
}
190-
191175
return poll;
192176
}
193177

0 commit comments

Comments
 (0)