From a5b30a6adc15110026a0e178c63fc23ed45bab11 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Tue, 21 Nov 2023 01:26:52 +0100 Subject: [PATCH] [backend] Fix notifications not loading correctly This fixes a regression introduced in a6fa3933598d33b92232a4c6706ece72cfe09b95 --- packages/backend/src/models/repositories/notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/models/repositories/notification.ts b/packages/backend/src/models/repositories/notification.ts index 2f77c35ca..8aea178c9 100644 --- a/packages/backend/src/models/repositories/notification.ts +++ b/packages/backend/src/models/repositories/notification.ts @@ -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) {