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 06ca6cdd
authored
2024-05-22 11:20:31 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
aae576b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
src/api/experience/controllers/experience.js
src/api/experience/controllers/experience.js
View file @
06ca6cd
...
...
@@ -142,11 +142,7 @@ module.exports = createCoreController("api::experience.experience", () => ({
"ctx.request.body.data.activityId"
,
ctx
.
request
.
body
.
data
.
activityId
);
const
updatedExperience
=
await
strapi
.
query
(
"api::experience.experience"
)
.
update
(
{
id
},
{
const
data
=
{
data
:
{
name
:
ctx
.
request
.
body
.
data
.
name
,
description
:
ctx
.
request
.
body
.
data
.
description
,
...
...
@@ -176,12 +172,13 @@ module.exports = createCoreController("api::experience.experience", () => ({
rating
:
ctx
.
request
.
body
.
data
.
rating
,
contactPersonForActivity
:
ctx
.
request
.
body
.
data
.
contactPersonForActivity
,
contactPersonForBooking
:
ctx
.
request
.
body
.
data
.
contactPersonForBooking
,
contactPersonForBooking
:
ctx
.
request
.
body
.
data
.
contactPersonForBooking
,
...
ctx
.
request
.
body
.
data
.
daysBoolean
,
},
}
);
};
const
updatedExperience
=
await
strapi
.
query
(
"api::experience.experience"
)
.
update
({
id
},
data
);
// const activity = await strapi.entityService.update(
// "api::experience.experience",
...
...
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