Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-strapi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 9dc0b281
authored
2024-05-04 13:39:02 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
e4842b2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/api/experience/controllers/experience.js
src/api/experience/controllers/experience.js
View file @
9dc0b28
...
@@ -19,6 +19,9 @@ module.exports = createCoreController("api::experience.experience", () => ({
...
@@ -19,6 +19,9 @@ module.exports = createCoreController("api::experience.experience", () => ({
if
(
!
ctx
.
request
.
body
.
data
.
subCategory
)
{
if
(
!
ctx
.
request
.
body
.
data
.
subCategory
)
{
throw
new
ValidationError
(
"Subcategory is a mandatory field"
);
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;
// const months = ctx.request.body.data.months;
// if (!months || !months.length > 0) {
// if (!months || !months.length > 0) {
// throw new ValidationError("Months is a required field.");
// throw new ValidationError("Months is a required field.");
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment