MaiXinRong 1 năm trước cách đây
mục cha
commit
b685f1e0e6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/filing.js

+ 1 - 1
app/service/filing.js

@@ -189,7 +189,7 @@ module.exports = app => {
             const posterity = await this.getPosterityData(filing.id);
             const updateData = { id: filing.id, tree_order: data.tree_order, tree_pid: data.tree_pid, tree_level: parent.tree_level + 1 };
             const posterityUpdateData = posterity.map(x => {
-               updateData.push({ id: x.id,  tree_level: parent.tree_level + 1 - filing.tree_level + x.tree_level });
+               return { id: x.id,  tree_level: parent.tree_level + 1 - filing.tree_level + x.tree_level };
             });
             const siblingUpdateData = [];
             if (data.tree_pid === filing.tree_pid) {