我使用meteor表格,因此我创建了meteor publish composite,但没有在控制台中获得用户值
这是我的代码:
Meteor.publishComposite 'admin_images_tabular', (table_name, ids, fields) ->
find: ->
denyNonAdmins @userId
self = @
q =
_id:
$in: ids
return Photos.find(q)
children: [{
find: (photo) ->
console.log 'photo::', photo
console.log 'photo user_id::', photo?.user_id
_.each photo?.participants, (participants) ->
console.log 'participants::', participants
user_cursor = Meteor.users.find({_id: participants?.user_id})
console.log 'users::', user_cursor.fetch()
user_cursor
}]