Skip to content

Commit

Permalink
ユーザー情報のhasUnreadChannelが常にfalseになってしまっているのを修正 (#7938)
Browse files Browse the repository at this point in the history
  • Loading branch information
シアノン authored Oct 31, 2021
1 parent 303c5ab commit 9236a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/repositories/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9236a8f

Please sign in to comment.