Skip to content

Commit

Permalink
fix: Fix quirks introduced by backport conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed May 13, 2024
1 parent a300663 commit 81c0fa2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Db/Poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function jsonSerialize(): array {
'summary' => [
'userRole' => $this->getUserRole(),
'orphanedVotes' => $this->getCurrentUserCountOrphanedVotes(),
'yesVotes' => $this->getCurrentUserCountVotesYes(),
'yesByCurrentUser' => $this->getCurrentUserCountVotesYes(),
'countVotes' => $this->getCurrentUserCountVotes(),
],
];
Expand Down
1 change: 0 additions & 1 deletion lib/Db/PollMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ protected function buildQuery(): IQueryBuilder {

$this->joinOptionsForMaxDate($qb, self::TABLE);
$this->joinUserRole($qb, self::TABLE, $currentUserId);
$qb->groupBy(self::TABLE . '.id');

return $qb;
}
Expand Down

0 comments on commit 81c0fa2

Please sign in to comment.