Skip to content

Commit c402818

Browse files
committed
fix: include author details to getPolls
1 parent b8cf562 commit c402818

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/poll/poll.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ export class PollService {
187187
const [polls, total] = await this.databaseService.$transaction([
188188
this.databaseService.poll.findMany({
189189
where: filters,
190+
include: {
191+
author: true,
192+
},
190193
orderBy,
191194
skip,
192195
take: Number(limit),

0 commit comments

Comments
 (0)