Commit 9dc0b281 by jaymehta

.

1 parent e4842b2e
......@@ -19,6 +19,9 @@ module.exports = createCoreController("api::experience.experience", () => ({
if (!ctx.request.body.data.subCategory) {
throw new ValidationError("Subcategory is a mandatory field");
}
if (!ctx.request.body.data.category) {
throw new ValidationError("Category is a mandatory field");
}
// const months = ctx.request.body.data.months;
// if (!months || !months.length > 0) {
// throw new ValidationError("Months is a required field.");
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!