Commit 06ca6cdd by jaymehta

.

1 parent aae576b1
...@@ -142,11 +142,7 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -142,11 +142,7 @@ 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 updatedExperience = await strapi const data = {
.query("api::experience.experience")
.update(
{ 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,
...@@ -176,12 +172,13 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -176,12 +172,13 @@ 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: contactPersonForBooking: ctx.request.body.data.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!