This commit is contained in:
syuilo 2019-04-08 00:24:01 +09:00
parent 3747f9cc77
commit a40cf94b4d

View file

@ -140,7 +140,7 @@ export class UserRepository extends Repository<User> {
}).then(count => count > 0),
hasUnreadNotification: Notifications.count({
where: {
userId: user.id,
notifieeId: user.id,
isRead: false
},
take: 1