How to get server data


#1
Template.registerHelper('getUserNameById',(a)=>{
    return Meteor.users.findOne(a).username;
});

if user login ,return username
if user no login,return undefind

i try Meteor.call(‘user’)
but Meteor.call(‘user’) is async
i cant get server data with other name

how to get server data?

thanks


#2

#3

thanks
:grinning::grinning::grinning::grinning::grinning: