Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
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 477e26c5
authored
2023-02-06 14:06:46 +0530
by
jay
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
projectSRDCampaignKey
1 parent
c04799e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
src/api/lead/services/lead.js
src/api/project/content-types/project/schema.json
src/api/lead/services/lead.js
View file @
477e26c
...
@@ -15,7 +15,7 @@ module.exports = createCoreService("api::lead.lead", ({ strapi: Strapi }) => ({
...
@@ -15,7 +15,7 @@ module.exports = createCoreService("api::lead.lead", ({ strapi: Strapi }) => ({
const
leadData
=
{
const
leadData
=
{
api_key
:
process
.
env
.
SPERTO_API_KEY
,
api_key
:
process
.
env
.
SPERTO_API_KEY
,
lead_category
:
"W"
,
lead_category
:
"W"
,
campaign_key
:
process
.
env
.
CAMPAIGN_KEY
,
campaign_key
:
data
.
projectSRDCampaignKey
?
data
.
projectSRDCampaignKey
:
""
,
customer_name
:
data
.
fullName
,
customer_name
:
data
.
fullName
,
mobile1_isd
:
""
,
mobile1_isd
:
""
,
mobile_no1
:
data
.
mobileNumber
,
mobile_no1
:
data
.
mobileNumber
,
...
...
src/api/project/content-types/project/schema.json
View file @
477e26c
...
@@ -155,14 +155,18 @@
...
@@ -155,14 +155,18 @@
"type"
:
"text"
"type"
:
"text"
},
},
"phoneBanner"
:
{
"phoneBanner"
:
{
"type"
:
"media"
,
"multiple"
:
false
,
"required"
:
false
,
"allowedTypes"
:
[
"allowedTypes"
:
[
"images"
,
"images"
,
"files"
,
"files"
,
"videos"
,
"videos"
,
"audios"
"audios"
],
]
"type"
:
"media"
,
},
"multiple"
:
false
"projectSRDCampaignKey"
:
{
"type"
:
"text"
}
}
}
}
}
}
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