fix(server): Use inner join
This commit is contained in:
parent
c52b504140
commit
70b129cc42
18 changed files with 18 additions and 18 deletions
|
@ -73,7 +73,7 @@ export default define(meta, async (ps, user) => {
|
|||
|
||||
const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId)
|
||||
.andWhere(`note.id IN (${ antennaQuery.getQuery() })`)
|
||||
.leftJoinAndSelect('note.user', 'user')
|
||||
.innerJoinAndSelect('note.user', 'user')
|
||||
.leftJoinAndSelect('note.reply', 'reply')
|
||||
.leftJoinAndSelect('note.renote', 'renote')
|
||||
.leftJoinAndSelect('reply.user', 'replyUser')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue