File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,14 @@ function distributeZones(locker) {
2929 case "story" :
3030 await config . load ( locker . config . story ) ;
3131
32- // Change the cadence
32+ // Set cadence for subscriber vs. nonsubscriber vs. nonsubscriber out of market in test domains
3333 const subscriber = locker . user . isSubscriber ( ) ;
34- const cadence = subscriber ? 4 : 3 ;
34+ const dma = subscriber ? true : await locker . user . isInDMA ( ) ;
35+ const nonsubscriberOutOfMarket = ! subscriber && ! dma ;
36+ const domainName = locker . getConfig ( 'domainName' ) ;
37+ const allowedDomains = [ "www.bnd.com" , "www.myrtlebeachonline.com" ] ;
38+ const cadence = allowedDomains . includes ( domainName ) && nonsubscriberOutOfMarket ? 2 : ( subscriber ? 4 : 3 ) ;
39+
3540 zones . distribute ( cadence ) ;
3641
3742 // Temporary cleanup
You can’t perform that action at this time.
0 commit comments