Commit cfaa6e42 by jaymehta

.

1 parent 65fd8b31
......@@ -273,14 +273,15 @@ module.exports = createCoreController("api::experience.experience", () => ({
async updateMostBooked(ctx) {
const { id } = ctx.request.body;
const updatedExperience = await strapi
.query("api::experience.experience")
.update({
where: { id },
data: {
mostBooked: ctx.request.body.mostBooked,
},
});
console.log("updatedExperience", updatedExperience);
.query("api::experience.experience")
.update({
where: { id },
data: {
mostBooked: ctx.request.body.mostBooked,
},
});
console.log("updatedExperience", updatedExperience);
ctx.send(updatedExperience);
},
async updateImage(ctx) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!