浏览代码

Commented out extra index because of IndexOptionsConflict.

Thanks to xet7 !
Lauri Ojansivu 3 年之前
父节点
当前提交
3c39953b42
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      models/users.js

+ 2 - 0
models/users.js

@@ -1666,6 +1666,7 @@ if (Meteor.isServer) {
     Users._collection.createIndex({
       modifiedAt: -1,
     });
+/* Commented out extra index because of IndexOptionsConflict.
     Users._collection.createIndex(
       {
         username: 1,
@@ -1674,6 +1675,7 @@ if (Meteor.isServer) {
         unique: true,
       },
     );
+*/
     Meteor.defer(() => {
       addCronJob();
     });