|
@@ -23,6 +23,7 @@ rationChapterTreeDAO.prototype.initSectionTemplate = async function (rationLibId
|
|
|
let bulks = [];
|
|
let bulks = [];
|
|
|
let stdRationSection = await rationChapterTreeModel.find({rationRepId: rationLibId});
|
|
let stdRationSection = await rationChapterTreeModel.find({rationRepId: rationLibId});
|
|
|
for (let data of stdRationSection) {
|
|
for (let data of stdRationSection) {
|
|
|
|
|
+ delete data._doc._id;
|
|
|
data._doc.compilationId = compilationId;
|
|
data._doc.compilationId = compilationId;
|
|
|
bulks.push({insertOne: {document: data}});
|
|
bulks.push({insertOne: {document: data}});
|
|
|
}
|
|
}
|