mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-29 17:02:51 +01:00
Improve performance
This commit is contained in:
parent
26941f62c6
commit
f5d2cb5c61
2 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,8 @@ export default (
|
|||
.count({
|
||||
recipientId: userId,
|
||||
isRead: false
|
||||
}, {
|
||||
limit: 1
|
||||
});
|
||||
|
||||
if (count == 0) {
|
||||
|
|
|
@ -43,6 +43,8 @@ export default (
|
|||
.count({
|
||||
notifieeId: userId,
|
||||
isRead: false
|
||||
}, {
|
||||
limit: 1
|
||||
});
|
||||
|
||||
if (count == 0) {
|
||||
|
|
Loading…
Reference in a new issue