                     notification.listener = listener
                     @router.notify notification
             if otherListeners.length > 0
-                req = @req.filter (update) ->
+                req = @req.filter (update) =>
                     switch update.type
                         when 'subscription'
                             @filterSubscription update

class RetrieveNodeSubscriptions extends PrivilegedOperation
    privilegedTransaction: (t, cb) ->
        rsm = @req.rsm
        t.getSubscribers @req.node, (err, subscriptions) ->
            if err
                return cb err


class RetrieveNodeAffiliations extends PrivilegedOperation
    privilegedTransaction: (t, cb) ->
        rsm = @req.rsm
        t.getAffiliated @req.node, (err, affiliations) =>
            if err
                return cb err

