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 f134a1a5
authored
2024-06-01 17:53:45 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
9dc020d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
src/api/experience/controllers/experience.js
src/api/experience/controllers/experience.js
View file @
f134a1a
...
...
@@ -198,10 +198,10 @@ module.exports = createCoreController("api::experience.experience", () => ({
ctx
.
request
.
body
.
data
.
activityId
);
const
updatedExperience
=
await
strapi
.
query
(
"api::experience.experience"
)
.
update
({
where
:
{
id
},
const
updatedExperience
=
await
strapi
.
entityService
.
update
(
"api::experience.experience"
,
id
,
{
data
:
{
name
:
ctx
.
request
.
body
.
data
.
name
,
description
:
ctx
.
request
.
body
.
data
.
description
,
...
...
@@ -219,7 +219,6 @@ module.exports = createCoreController("api::experience.experience", () => ({
activityType
:
ctx
.
request
.
body
.
data
.
activityType
,
link
:
ctx
.
request
.
body
.
data
.
link
,
cancellationPolicy
:
ctx
.
request
.
body
.
data
.
cancellationPolicy
,
// vendor: ctx.request.body.data.vendor.id,
subCategory
:
subCategory
.
id
,
category
:
category
.
id
,
giftSomeone
:
ctx
.
request
.
body
.
data
.
giftSomeone
,
...
...
@@ -235,10 +234,11 @@ module.exports = createCoreController("api::experience.experience", () => ({
ctx
.
request
.
body
.
data
.
contactPersonForBooking
,
imagesComponent
:
finalImageArray
,
approved
:
ctx
.
request
.
body
.
data
.
approved
,
// imagesComponent: ctx.request.body.data.imagesArrayComponent,
...
ctx
.
request
.
body
.
data
.
daysBoolean
,
},
});
}
);
console
.
log
(
"ctx.request.body.data.imagesArrayComponent"
,
ctx
.
request
.
body
.
data
.
imagesComponent
...
...
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