Commit aae576b1 by jaymehta

.

1 parent 520f9381
...@@ -147,37 +147,39 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -147,37 +147,39 @@ module.exports = createCoreController("api::experience.experience", () => ({
.update( .update(
{ id }, { id },
{ {
name: ctx.request.body.data.name, data: {
description: ctx.request.body.data.description, name: ctx.request.body.data.name,
pricePerPerson: ctx.request.body.data.pricePerPerson, description: ctx.request.body.data.description,
address: ctx.request.body.data.address, pricePerPerson: ctx.request.body.data.pricePerPerson,
masterPincode: ctx.request.body.data.pincode.id, address: ctx.request.body.data.address,
minimumDuration: ctx.request.body.data.minimumDuration, masterPincode: ctx.request.body.data.pincode.id,
maximumDuration: ctx.request.body.data.maximumDuration, minimumDuration: ctx.request.body.data.minimumDuration,
duration: ctx.request.body.data.duration, maximumDuration: ctx.request.body.data.maximumDuration,
ageLowerLimit: ctx.request.body.data.ageLowerLimit, duration: ctx.request.body.data.duration,
ageNotes: ctx.request.body.data.ageNotes, ageLowerLimit: ctx.request.body.data.ageLowerLimit,
phoneNumber: ctx.request.body.data.phoneNumber, ageNotes: ctx.request.body.data.ageNotes,
minGroupSize: ctx.request.body.data.minGroupSize, phoneNumber: ctx.request.body.data.phoneNumber,
maxGroupSize: ctx.request.body.data.maxGroupSize, minGroupSize: ctx.request.body.data.minGroupSize,
activityType: ctx.request.body.data.activityType, maxGroupSize: ctx.request.body.data.maxGroupSize,
link: ctx.request.body.data.link, activityType: ctx.request.body.data.activityType,
cancellationPolicy: ctx.request.body.data.cancellationPolicy, link: ctx.request.body.data.link,
// vendor: ctx.request.body.data.vendor.id, cancellationPolicy: ctx.request.body.data.cancellationPolicy,
subCategory: subCategory.id, // vendor: ctx.request.body.data.vendor.id,
category: category.id, subCategory: subCategory.id,
giftSomeone: ctx.request.body.data.giftSomeone, category: category.id,
fromDate: ctx.request.body.data.fromDate, giftSomeone: ctx.request.body.data.giftSomeone,
toDate: ctx.request.body.data.toDate, fromDate: ctx.request.body.data.fromDate,
fromTime: ctx.request.body.data.fromTime, toDate: ctx.request.body.data.toDate,
toTime: ctx.request.body.data.toTime, fromTime: ctx.request.body.data.fromTime,
offers: ctx.request.body.data.offers, toTime: ctx.request.body.data.toTime,
rating: ctx.request.body.data.rating, offers: ctx.request.body.data.offers,
contactPersonForActivity: rating: ctx.request.body.data.rating,
ctx.request.body.data.contactPersonForActivity, contactPersonForActivity:
contactPersonForBooking: ctx.request.body.data.contactPersonForActivity,
ctx.request.body.data.contactPersonForBooking, contactPersonForBooking:
...ctx.request.body.data.daysBoolean, ctx.request.body.data.contactPersonForBooking,
...ctx.request.body.data.daysBoolean,
},
} }
); );
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!