Commit 686408de by jaymehta

.

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