Browse Source

add index to revision model

Yuki Takei 5 năm trước cách đây
mục cha
commit
33700be745
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/server/models/revision.js

+ 1 - 1
src/server/models/revision.js

@@ -9,7 +9,7 @@ module.exports = function(crowi) {
 
   const ObjectId = mongoose.Schema.Types.ObjectId;
   const revisionSchema = new mongoose.Schema({
-    path: { type: String, required: true },
+    path: { type: String, required: true, index: true },
     body: {
       type: String,
       required: true,