Commit 477e26c5 by jay

projectSRDCampaignKey

1 parent c04799e1
...@@ -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,
......
...@@ -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"
} }
} }
} }
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!