Skip to content

Commit

Permalink
fix for edit dynamicsection questionid
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinovpankaj committed Jul 19, 2024
1 parent 1e3af8c commit 25f27ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/dynamicSectionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ var getSectionsByParentId = async function (parentId) {

const editSetion = async (sectionId, section) => {
try {
section.questions.forEach(question => question._id = new ObjectId(question._id))
const result = await SectionDAO.editSection(sectionId, section);
if (result.modifiedCount === 1) {
const sectionFromDB = await SectionDAO.getSectionById(sectionId);
Expand Down

0 comments on commit 25f27ea

Please sign in to comment.