ユーザー情報のhasUnreadChannelが常にfalseになってしまっているのを修正 (#7938)

This commit is contained in:
シアノン 2021-10-31 16:55:25 +09:00 committed by GitHub
parent 303c5abfb4
commit 9236a8fd6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ export class UserRepository extends Repository<User> {
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;