Yuki Takei 5 лет назад
Родитель
Сommit
33700be745
1 измененных файлов с 1 добавлено и 1 удалено
  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,