mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[backend] Improve renote status aggregate query
This commit is contained in:
parent
8a6101059f
commit
3ccfd0417b
1 changed files with 3 additions and 0 deletions
|
@ -345,6 +345,9 @@ export const NoteRepository = db.getRepository(Note).extend({
|
|||
.select('note.renoteId')
|
||||
.where('note.userId = :meId', { meId })
|
||||
.andWhere('note.renoteId IN (:...targets)', { targets })
|
||||
.andWhere('note.text IS NULL')
|
||||
.andWhere('note.hasPoll = FALSE')
|
||||
.andWhere(`note.fileIds = '{}'`)
|
||||
.getMany();
|
||||
|
||||
for (const target of targets) {
|
||||
|
|
Loading…
Reference in a new issue