瀏覽代碼

Remove sorting by _id

boeserwolf 5 年之前
父節點
當前提交
e354715a9d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/publications/boards.js

+ 1 - 1
server/publications/boards.js

@@ -92,7 +92,7 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
         $or,
         // Sort required to ensure oplog usage
       },
-      { limit: 1, sort: { sort: 1 /* boards default sorting */, _id: 1 } },
+      { limit: 1, sort: { sort: 1 /* boards default sorting */ } },
     ),
     function(boardId, board) {
       this.cursor(Lists.find({ boardId, archived: isArchived }));