Commit 045e097b by jaymehta

.

1 parent 3b09045f
...@@ -174,7 +174,7 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -174,7 +174,7 @@ module.exports = createCoreController("api::experience.experience", () => ({
) { ) {
const element = ctx.request.body.data.imagesComponent[index]; const element = ctx.request.body.data.imagesComponent[index];
console.log("element", element); console.log("element", element);
finalImageArray = [...finalImageArray, { image: element }]; finalImageArray = [...finalImageArray, { id: element }];
console.log("final", finalImageArray); console.log("final", finalImageArray);
} }
const subCategory = await strapi const subCategory = await strapi
...@@ -236,7 +236,7 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -236,7 +236,7 @@ module.exports = createCoreController("api::experience.experience", () => ({
approved: ctx.request.body.data.approved, approved: ctx.request.body.data.approved,
// imagesComponent: ctx.request.body.data.imagesArrayComponent, // imagesComponent: ctx.request.body.data.imagesArrayComponent,
...ctx.request.body.data.daysBoolean, ...ctx.request.body.data.daysBoolean,
imagesComponent: ctx.request.body.data.imagesComponent, imagesComponent: finalImageArray,
}, },
}); });
console.log( 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!