mod-build 3.6.50-beta.1 → 3.6.50-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gulp-tasks/templates.js +1 -1
- package/package.json +1 -1
package/gulp-tasks/templates.js
CHANGED
|
@@ -215,7 +215,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
215
215
|
const website = templatesData.website_name;
|
|
216
216
|
const c_level = templatesData.cLevel ? templatesData.cLevel : 'default';
|
|
217
217
|
const affiliateKey = templatesData.affiliateKey ? templatesData.affiliateKey : 0;
|
|
218
|
-
const service = templatesData.primary_trade.toLowerCase().replace(' ', '_');
|
|
218
|
+
const service = templatesData.service ? templatesData.service.toLowerCase().replace(' ', '_') : templatesData.primary_trade.toLowerCase().replace(' ', '_');
|
|
219
219
|
const apiEnv = 'https://' + (templatesData.nodeEnv === 'modernize.com' ? 'hs.leadpost.net/' : 'hsleadpost1.quinstage.com/');
|
|
220
220
|
const url = `${apiEnv}coreg/getTCPAConsent?website=${website}&service=${service}&affiliateKey=${affiliateKey}&c_level=${c_level}`;
|
|
221
221
|
console.time('Finished fetch-tcpa-from-sitegenie after');
|