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 cbf9c8ec
authored
2024-05-22 12:04:49 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
6ab48a5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/api/experience/controllers/experience.js
src/api/experience/controllers/experience.js
View file @
cbf9c8e
...
@@ -107,6 +107,8 @@ module.exports = createCoreController("api::experience.experience", () => ({
...
@@ -107,6 +107,8 @@ module.exports = createCoreController("api::experience.experience", () => ({
},
},
async
update
(
ctx
)
{
async
update
(
ctx
)
{
const
{
id
}
=
ctx
.
params
;
// if (!ctx.request.body.data.vendor) {
// if (!ctx.request.body.data.vendor) {
// throw new ValidationError("Vendor is a mandatory field.");
// throw new ValidationError("Vendor is a mandatory field.");
// }
// }
...
@@ -142,7 +144,6 @@ module.exports = createCoreController("api::experience.experience", () => ({
...
@@ -142,7 +144,6 @@ module.exports = createCoreController("api::experience.experience", () => ({
throw
new
ValidationError
(
"Category is a mandatory field"
);
throw
new
ValidationError
(
"Category is a mandatory field"
);
}
}
console
.
log
(
"subcategoyr"
,
ctx
.
params
);
console
.
log
(
"subcategoyr"
,
ctx
.
params
);
const
{
id
}
=
ctx
.
params
;
const
subCategory
=
await
strapi
const
subCategory
=
await
strapi
.
query
(
"api::sub-categorie.sub-categorie"
)
.
query
(
"api::sub-categorie.sub-categorie"
)
...
...
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