mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change innerJoin to leftJoin, so that every contribution is shown not only the one with messages.
This commit is contained in:
parent
a9c3dd25ed
commit
057816e4c0
@ -98,8 +98,8 @@ export class ContributionResolver {
|
||||
.createQueryBuilder()
|
||||
.select('c')
|
||||
.from(dbContribution, 'c')
|
||||
.innerJoinAndSelect('c.messages', 'm')
|
||||
.innerJoinAndSelect('m.user', 'u')
|
||||
.leftJoinAndSelect('c.messages', 'm')
|
||||
.leftJoinAndSelect('m.user', 'u')
|
||||
.orderBy('c.createdAt', order)
|
||||
.limit(pageSize)
|
||||
.offset((currentPage - 1) * pageSize)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user