This commit is contained in:
syuilo 2019-04-08 00:24:01 +09:00
parent 6a30d32e7d
commit dc82203e9b
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 1 additions and 1 deletions

View File

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