     path: '/mine'
     template: 'needs'
     data: ->
-      if Meteor.userId()
-        Needs.find({userId: Meteor.userId()}, sort: {score: -1})
+      needs: Needs.find({userId: Meteor.userId()}, sort: {score: -1})
     waitOn: ->
       Meteor.subscribe 'needs', Session.get('query')
     onBeforeAction: ->

    path: '/fav'
    template: 'needs'
    data: ->
      Needs.find ({starUsers: { $in: [Meteor.user()._id] }}  )
    waitOn: ->
      Meteor.subscribe 'needs', Session.get('strNeeds')
    onBeforeAction: ->

  yieldTemplates:
    footer:
      to: "footer"

Router.onBeforeAction 'loading'

Router.map ->
  @route 'needs',
