Commit f134a1a5 by jaymehta

.

1 parent 9dc020d7
...@@ -198,10 +198,10 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -198,10 +198,10 @@ module.exports = createCoreController("api::experience.experience", () => ({
ctx.request.body.data.activityId ctx.request.body.data.activityId
); );
const updatedExperience = await strapi const updatedExperience = await strapi.entityService.update(
.query("api::experience.experience") "api::experience.experience",
.update({ id,
where: { id }, {
data: { data: {
name: ctx.request.body.data.name, name: ctx.request.body.data.name,
description: ctx.request.body.data.description, description: ctx.request.body.data.description,
...@@ -219,7 +219,6 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -219,7 +219,6 @@ module.exports = createCoreController("api::experience.experience", () => ({
activityType: ctx.request.body.data.activityType, activityType: ctx.request.body.data.activityType,
link: ctx.request.body.data.link, link: ctx.request.body.data.link,
cancellationPolicy: ctx.request.body.data.cancellationPolicy, cancellationPolicy: ctx.request.body.data.cancellationPolicy,
// vendor: ctx.request.body.data.vendor.id,
subCategory: subCategory.id, subCategory: subCategory.id,
category: category.id, category: category.id,
giftSomeone: ctx.request.body.data.giftSomeone, giftSomeone: ctx.request.body.data.giftSomeone,
...@@ -235,10 +234,11 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -235,10 +234,11 @@ module.exports = createCoreController("api::experience.experience", () => ({
ctx.request.body.data.contactPersonForBooking, ctx.request.body.data.contactPersonForBooking,
imagesComponent: finalImageArray, imagesComponent: finalImageArray,
approved: ctx.request.body.data.approved, approved: ctx.request.body.data.approved,
// imagesComponent: ctx.request.body.data.imagesArrayComponent,
...ctx.request.body.data.daysBoolean, ...ctx.request.body.data.daysBoolean,
}, },
}); }
);
console.log( console.log(
"ctx.request.body.data.imagesArrayComponent", "ctx.request.body.data.imagesArrayComponent",
ctx.request.body.data.imagesComponent ctx.request.body.data.imagesComponent
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!