[backend] Fix notifications not loading correctly

This fixes a regression introduced in a6fa393359
This commit is contained in:
Laura Hausmann 2023-11-21 01:26:52 +01:00
parent 661c31db0c
commit a5b30a6adc
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -166,7 +166,7 @@ export const NotificationRepository = db.getRepository(Notification).extend({
const myRenotes = await Notes.createQueryBuilder('note') const myRenotes = await Notes.createQueryBuilder('note')
.select('note.renoteId') .select('note.renoteId')
.where('note.userId = :meId', { meId }) .where('note.userId = :meId', { meId })
.andWhere('note.renoteId IN array[:...targets]', { targets }) .andWhere('note.renoteId IN (:...targets)', { targets })
.getMany(); .getMany();
for (const target of targets) { for (const target of targets) {