Commit 4696becb by jaymehta

.

1 parent f0d52e2d
...@@ -57,18 +57,22 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -57,18 +57,22 @@ module.exports = createCoreController("api::experience.experience", () => ({
); );
} }
let finalImageArray = []; let finalImageArray = [];
console.log(
"ctx.request.body.data.imagesComponent",
ctx.request.body.data.imagesComponent,
ctx.request.body.data.imagesComponent.length
);
for ( for (
let index = 0; let index = 0;
index < ctx.request.body.data.imagesComponent.length; index < ctx.request.body.data.imagesComponent.length;
index++ index++
) { ) {
const element = ctx.request.body.data.imagesComponent[index]; const element = ctx.request.body.data.imagesComponent[index];
console.log("here >", element);
finalImageArray = [...finalImageArray, { image: 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; // ctx.request.body.data.imagesComponent;
// Create Activity // Create Activity
const activity = await strapi.entityService.create( 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!