Commit cfaa6e42 by jaymehta

.

1 parent 65fd8b31
...@@ -273,14 +273,15 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -273,14 +273,15 @@ module.exports = createCoreController("api::experience.experience", () => ({
async updateMostBooked(ctx) { async updateMostBooked(ctx) {
const { id } = ctx.request.body; const { id } = ctx.request.body;
const updatedExperience = await strapi const updatedExperience = await strapi
.query("api::experience.experience") .query("api::experience.experience")
.update({ .update({
where: { id }, where: { id },
data: { data: {
mostBooked: ctx.request.body.mostBooked, mostBooked: ctx.request.body.mostBooked,
}, },
}); });
console.log("updatedExperience", updatedExperience); console.log("updatedExperience", updatedExperience);
ctx.send(updatedExperience);
}, },
async updateImage(ctx) { 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!