Commit 06ca6cdd by jaymehta

.

1 parent aae576b1
......@@ -142,11 +142,7 @@ module.exports = createCoreController("api::experience.experience", () => ({
"ctx.request.body.data.activityId",
ctx.request.body.data.activityId
);
const updatedExperience = await strapi
.query("api::experience.experience")
.update(
{ id },
{
const data = {
data: {
name: ctx.request.body.data.name,
description: ctx.request.body.data.description,
......@@ -176,12 +172,13 @@ module.exports = createCoreController("api::experience.experience", () => ({
rating: ctx.request.body.data.rating,
contactPersonForActivity:
ctx.request.body.data.contactPersonForActivity,
contactPersonForBooking:
ctx.request.body.data.contactPersonForBooking,
contactPersonForBooking: ctx.request.body.data.contactPersonForBooking,
...ctx.request.body.data.daysBoolean,
},
}
);
};
const updatedExperience = await strapi
.query("api::experience.experience")
.update({ id }, data);
// const activity = await strapi.entityService.update(
// "api::experience.experience",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!