ANY()なくした
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
parent
6c83f01ef4
commit
768f158c10
4 changed files with 9 additions and 10 deletions
|
|
@ -74,8 +74,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
}
|
||||
|
||||
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId);
|
||||
query.andWhere(':file = ANY(note.fileIds)', { file: file.id });
|
||||
|
||||
query.andWhere(':file <@ note.fileIds', { file: [file.id] });
|
||||
const notes = await query.limit(ps.limit).getMany();
|
||||
|
||||
return await this.noteEntityService.packMany(notes, me, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue