From 9236a8fd6c32e6b33ad53f3d82c177fe5060d352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B7=E3=82=A2=E3=83=8E=E3=83=B3?= Date: Sun, 31 Oct 2021 16:55:25 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E6=83=85?= =?UTF-8?q?=E5=A0=B1=E3=81=AEhasUnreadChannel=E3=81=8C=E5=B8=B8=E3=81=ABfa?= =?UTF-8?q?lse=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=97=E3=81=BE?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=84=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20(#7938)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/repositories/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts index 72cefbaac5..9598e87191 100644 --- a/src/models/repositories/user.ts +++ b/src/models/repositories/user.ts @@ -112,7 +112,7 @@ export class UserRepository extends Repository { const unread = channels.length > 0 ? await NoteUnreads.findOne({ userId: userId, - noteChannelId: In(channels.map(x => x.id)), + noteChannelId: In(channels.map(x => x.followeeId)), }) : null; return unread != null;