diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-09 13:32:41 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-09 13:32:41 +0900 |
| commit | 4f20c871860d0f62aef77bc716c3cc2677d4a592 (patch) | |
| tree | f819d92c3e3eb413b4e9826d4360b21bfe9c5215 /packages/backend/src/server/api/endpoints/notes/children.ts | |
| parent | refactor(backend): better argument name (diff) | |
| download | misskey-4f20c871860d0f62aef77bc716c3cc2677d4a592.tar.gz misskey-4f20c871860d0f62aef77bc716c3cc2677d4a592.tar.bz2 misskey-4f20c871860d0f62aef77bc716c3cc2677d4a592.zip | |
lint fixes
Diffstat (limited to 'packages/backend/src/server/api/endpoints/notes/children.ts')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/notes/children.ts | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/children.ts b/packages/backend/src/server/api/endpoints/notes/children.ts index 1a82a4b5d7..1e569d9806 100644 --- a/packages/backend/src/server/api/endpoints/notes/children.ts +++ b/packages/backend/src/server/api/endpoints/notes/children.ts @@ -49,16 +49,19 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- ) { super(meta, paramDef, async (ps, me) => { const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId) - .andWhere(new Brackets(qb => { qb - .where('note.replyId = :noteId', { noteId: ps.noteId }) - .orWhere(new Brackets(qb => { qb - .where('note.renoteId = :noteId', { noteId: ps.noteId }) - .andWhere(new Brackets(qb => { qb - .where('note.text IS NOT NULL') - .orWhere('note.fileIds != \'{}\'') - .orWhere('note.hasPoll = TRUE'); + .andWhere(new Brackets(qb => { + qb + .where('note.replyId = :noteId', { noteId: ps.noteId }) + .orWhere(new Brackets(qb => { + qb + .where('note.renoteId = :noteId', { noteId: ps.noteId }) + .andWhere(new Brackets(qb => { + qb + .where('note.text IS NOT NULL') + .orWhere('note.fileIds != \'{}\'') + .orWhere('note.hasPoll = TRUE'); + })); })); - })); })) .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('note.reply', 'reply') |