Commit 4696becb by jaymehta

.

1 parent f0d52e2d
......@@ -57,18 +57,22 @@ module.exports = createCoreController("api::experience.experience", () => ({
);
}
let finalImageArray = [];
console.log(
"ctx.request.body.data.imagesComponent",
ctx.request.body.data.imagesComponent,
ctx.request.body.data.imagesComponent.length
);
for (
let index = 0;
index < ctx.request.body.data.imagesComponent.length;
index++
) {
const element = ctx.request.body.data.imagesComponent[index];
console.log("here >", element);
finalImageArray = [...finalImageArray, { image: element }];
console.log("final array", finalImageArray)
}
console.log(
"ctx.request.body.data.imagesComponent",
ctx.request.body.data.imagesComponent
);
// ctx.request.body.data.imagesComponent;
// Create Activity
const activity = await strapi.entityService.create(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!