File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -122,9 +122,11 @@ try {
122122 db . data [ user ] [ title ] . status ||= status ;
123123 notify_games . push ( { title, url, status } ) ;
124124
125- console . log ( "Unsubscribe from 'Promotions and hot deals' newsletter" ) ;
126- await page . goto ( 'https://www.gog.com/en/account/settings/subscriptions' ) ;
127- await page . locator ( 'li:has-text("Promotions and hot deals") label' ) . uncheck ( ) ;
125+ if ( status == 'claimed' ) { // TODO check if this is enough or if newsleter is enabled if 'existed'
126+ console . log ( "Unsubscribe from 'Promotions and hot deals' newsletter" ) ;
127+ await page . goto ( 'https://www.gog.com/en/account/settings/subscriptions' ) ;
128+ await page . locator ( 'li:has-text("Promotions and hot deals") label' ) . uncheck ( ) ;
129+ }
128130 }
129131} catch ( error ) {
130132 console . error ( error ) ; // .toString()?
You can’t perform that action at this time.
0 commit comments