If I copy/paste in
Tasks.insert({
text: text,
createdAt: new Date(), // current time
owner: Meteor.userId(), // _id of logged in user
username: Meteor.user().username // username of logged in user
});
The console shows that username isn’t added to the Object. When I do:
username: Meteor.user()
I can get the email address. Is there another way to do this? Does Meteor.user().username no longer exist?