1- import MainHelper from 'src/shared/helpers/MainHelper ' ;
1+ import { getAppId } from 'src/shared/helpers/main ' ;
22import { NotificationType } from 'src/shared/subscriptions/constants' ;
33import type { NotificationTypeValue } from 'src/shared/subscriptions/types' ;
44import { SubscriptionModel } from '../models/SubscriptionModel' ;
@@ -29,7 +29,7 @@ export class SubscriptionModelStoreListener extends ModelStoreListener<Subscript
2929 const { enabled, notification_types } =
3030 SubscriptionModelStoreListener . _getSubscriptionEnabledAndStatus ( model ) ;
3131
32- const appId = MainHelper . _getAppId ( ) ;
32+ const appId = getAppId ( ) ;
3333 return new CreateSubscriptionOperation ( {
3434 appId,
3535 onesignalId : this . _identityModelStore . model . _onesignalId ,
@@ -42,7 +42,7 @@ export class SubscriptionModelStoreListener extends ModelStoreListener<Subscript
4242 }
4343
4444 _getRemoveOperation ( model : SubscriptionModel ) : Operation {
45- const appId = MainHelper . _getAppId ( ) ;
45+ const appId = getAppId ( ) ;
4646 return new DeleteSubscriptionOperation (
4747 appId ,
4848 this . _identityModelStore . model . _onesignalId ,
@@ -53,7 +53,7 @@ export class SubscriptionModelStoreListener extends ModelStoreListener<Subscript
5353 _getUpdateOperation ( model : SubscriptionModel ) : Operation {
5454 const { enabled, notification_types } =
5555 SubscriptionModelStoreListener . _getSubscriptionEnabledAndStatus ( model ) ;
56- const appId = MainHelper . _getAppId ( ) ;
56+ const appId = getAppId ( ) ;
5757
5858 return new UpdateSubscriptionOperation ( {
5959 appId,
0 commit comments