[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')
.select('note.renoteId')
.where('note.userId = :meId', { meId })
.andWhere('note.renoteId IN array[:...targets]', { targets })
.andWhere('note.renoteId IN (:...targets)', { targets })
.getMany();
for (const target of targets) {