zamis 5 лет назад
Родитель
Сommit
3ee6a8472e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/server/models/page.js

+ 1 - 0
src/server/models/page.js

@@ -1217,6 +1217,7 @@ module.exports = function(crowi) {
       await Page.create(path, body, user, { redirectTo: newPagePath });
     }
 
+    // The reason using array is to match the types in elasticsearch.js ( deletePages )
     pageEvent.emit('delete', [pageData], user, socketClientId);
     pageEvent.emit('create', updatedPageData, user, socketClientId);