Commit 686408de by jaymehta

.

1 parent 6c63d906
......@@ -142,7 +142,11 @@ module.exports = createCoreController("api::experience.experience", () => ({
"ctx.request.body.data.activityId",
ctx.request.body.data.activityId
);
const data = {
const updatedExperience = await strapi
.query("api::experience.experience")
.update({
where: { id },
data: {
name: ctx.request.body.data.name,
description: ctx.request.body.data.description,
......@@ -172,13 +176,11 @@ 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!