Commit cbf9c8ec by jaymehta

.

1 parent 6ab48a5a
......@@ -107,6 +107,8 @@ module.exports = createCoreController("api::experience.experience", () => ({
},
async update(ctx) {
const { id } = ctx.params;
// if (!ctx.request.body.data.vendor) {
// throw new ValidationError("Vendor is a mandatory field.");
// }
......@@ -142,7 +144,6 @@ module.exports = createCoreController("api::experience.experience", () => ({
throw new ValidationError("Category is a mandatory field");
}
console.log("subcategoyr", ctx.params);
const { id } = ctx.params;
const subCategory = await strapi
.query("api::sub-categorie.sub-categorie")
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!