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.
@@ -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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.50-beta.1",
3
+ "version": "3.6.50-beta.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",