Преглед на файлове

Step 9.6: Update getMeteorData to return data about user.

Frederic G. MARAND преди 8 години
родител
ревизия
5a46df5f6d
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      App.jsx

+ 2 - 1
App.jsx

@@ -25,7 +25,8 @@ App = React.createClass({
       tasks: Tasks.find(query, { sort: { createdAt: -1 }}).fetch(),
       // Since we already have the data in the client-side Minimongo collection,
       // adding this extra count doesn't involve asking the server for anything.
-      incompleteCount: Tasks.find(uncheckedQuery).count()
+      incompleteCount: Tasks.find(uncheckedQuery).count(),
+      currentUser: Meteor.user()
     };
 
     // Meteor._debug("result", result);