浏览代码

Fixed a typo and removed an old todo comment

mayjs 8 年之前
父节点
当前提交
1bdc28bf9c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      models/boards.js

+ 2 - 2
models/boards.js

@@ -562,13 +562,13 @@ if (Meteor.isServer) {
 
     const data = Boards.find({
         archived: false,
-        'members.userId': req.userId, // TODO: How does the current authentication system work? Can we rely on req.userId to be correct?
+        'members.userId': req.userId,
         }, {
         sort: ['title'],
       }).map(function(board) {
         return {
           _id: board._id,
-          title: board._title
+          title: board.title
         }
     });