module.exports = {

  show: function (req, res) {
    if (!req.session.userId) {
      return res.ok({})
    }
    User.find(req.session.userId)
    .then(user => res.ok({new_notification_count: user.get('new_notification_count')}))
  }
}

@@ -12,17 +12,16 @@
 rts = %7B%0A
-%0A
   show: 
@@ -74,16 +74,8 @@
 rId)
- %7B%0A     
  ret
@@ -93,13 +93,8 @@
 %7B%7D)%0A
-    %7D
 %0A   
@@ -122,16 +122,48 @@
 n.userId
+, %7BwithRelated: %5B'memberships'%5D%7D
 )%0A    .t
@@ -182,16 +182,23 @@
 res.ok(%7B
+%0A      
 new_noti
@@ -247,16 +247,172 @@
 _count')
+,%0A      memberships: user.relations.memberships.map(m =%3E (%7B%0A        id: m.id,%0A        new_notification_count: m.get('new_notification_count')%0A      %7D))%0A    
 %7D))%0A  %7D%0A

add community new notification counts to live status