Skip to content
Snippets Groups Projects
Commit f5d2cb5c authored by syuilo's avatar syuilo
Browse files

Improve performance

parent 26941f62
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment