enhance(backend): ANY()をやめる (MisskeyIO#239)
This commit is contained in:
parent
f4d9269eec
commit
24d2f2aa3b
5 changed files with 12 additions and 10 deletions
|
|
@ -74,7 +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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue