File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export type TOtherAuth = 'prime' | 'tve' | 'peacock' | 'sunday_ticket';
165
165
166
166
interface INFLJwt {
167
167
dmaCode : string ;
168
- plans : { plan : string ; status : string } [ ] ;
168
+ plans : { plan : string ; status : string ; expirationDate : string } [ ] ;
169
169
networks ?: { [ key : string ] : string } ;
170
170
}
171
171
@@ -508,7 +508,7 @@ class NflHandler {
508
508
509
509
if ( plans ) {
510
510
const redZoneAccess =
511
- plans . findIndex ( p => p . plan === 'NFL_PLUS_PREMIUM' && p . status === 'ACTIVE' ) > - 1 || networks ?. NFLRZ
511
+ plans . findIndex ( p => p . plan === 'NFL_PLUS_PREMIUM' && ( p . status === 'ACTIVE' || ( p . status === 'CANCELLED' && p . expirationDate >= ( new Date ( ) ) . toISOString ( ) . split ( 'T' ) [ 0 ] ) ) ) > - 1 || networks ?. NFLRZ
512
512
? true
513
513
: false ;
514
514
@@ -558,7 +558,7 @@ class NflHandler {
558
558
559
559
if ( plans ) {
560
560
hasPlus =
561
- plans . findIndex ( p => ( p . plan === 'NFL_PLUS' || p . plan === 'NFL_PLUS_PREMIUM' ) && p . status === 'ACTIVE' ) > - 1
561
+ plans . findIndex ( p => ( p . plan === 'NFL_PLUS' || p . plan === 'NFL_PLUS_PREMIUM' ) && ( p . status === 'ACTIVE' || ( p . status === 'CANCELLED' && p . expirationDate >= ( new Date ( ) ) . toISOString ( ) . split ( 'T' ) [ 0 ] ) ) ) > - 1
562
562
? true
563
563
: false ;
564
564
}
You can’t perform that action at this time.
0 commit comments