replace meteor.userId

Error: Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.