|
@@ -455,7 +455,7 @@ module.exports = app => {
|
|
|
const createData = await this.getDataByFullPath(detail.id, insertData[0][this.setting.fullPath] + '%');
|
|
|
const updateData = await this.getNextsData(detail.id, targetId, insertData[0][this.setting.order]);
|
|
|
if (updateParent) {
|
|
|
- updateData.push(await this.getDataByCondition({ id: updateParent.id }));
|
|
|
+ updateData.push(await this.getDataById(parent.id));
|
|
|
}
|
|
|
return { create: createData, update: updateData };
|
|
|
}
|