|
@@ -48,7 +48,9 @@ App = React.createClass({
|
|
|
|
|
|
Tasks.insert({
|
|
Tasks.insert({
|
|
text: text,
|
|
text: text,
|
|
- createdAt: new Date() // Current time
|
|
|
|
|
|
+ createdAt: new Date(), // Current time
|
|
|
|
+ owner: Meteor.userId(), // _id of logged-in user
|
|
|
|
+ username: Meteor.user().username // username of logged-in user
|
|
});
|
|
});
|
|
|
|
|
|
// Clear form to allow a new input.
|
|
// Clear form to allow a new input.
|