Commit 3b09045f by jaymehta

.

1 parent 4226ff54
......@@ -66,7 +66,7 @@ module.exports = createCoreController("api::experience.experience", () => ({
const element = ctx.request.body.data.imagesComponent[index];
console.log("here >", element);
finalImageArray = [...finalImageArray, { image: element }];
console.log("final array", finalImageArray)
console.log("final array", finalImageArray);
}
// ctx.request.body.data.imagesComponent;
......@@ -106,7 +106,7 @@ module.exports = createCoreController("api::experience.experience", () => ({
contactPersonForBooking:
ctx.request.body.data.contactPersonForBooking,
approved: ctx.request.body.data.approved,
imagesComponent: ctx.request.body.data.imagesComponent,
imagesComponent: finalImageArray,
// imagesComponent: finalImageArray,
...ctx.request.body.data.daysBoolean,
},
......@@ -173,9 +173,9 @@ module.exports = createCoreController("api::experience.experience", () => ({
index++
) {
const element = ctx.request.body.data.imagesComponent[index];
console.log("element", element)
console.log("element", element);
finalImageArray = [...finalImageArray, { image: element }];
console.log("final", finalImageArray)
console.log("final", finalImageArray);
}
const subCategory = await strapi
.query("api::sub-categorie.sub-categorie")
......@@ -236,7 +236,7 @@ module.exports = createCoreController("api::experience.experience", () => ({
approved: ctx.request.body.data.approved,
// imagesComponent: ctx.request.body.data.imagesArrayComponent,
...ctx.request.body.data.daysBoolean,
imagesComponent: finalImageArray,
imagesComponent: ctx.request.body.data.imagesComponent,
},
});
console.log(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!