@@ -107,10 +107,10 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
107107 } ;
108108
109109 const response = await createSubscriptionByAlias (
110- { appId : createOperation . appId } ,
110+ { appId : createOperation . _appId } ,
111111 {
112112 label : IdentityConstants . ONESIGNAL_ID ,
113- id : createOperation . onesignalId ,
113+ id : createOperation . _onesignalId ,
114114 } ,
115115 { subscription } ,
116116 ) ;
@@ -131,7 +131,7 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
131131 ) ;
132132 subscriptionModel ?. _setProperty (
133133 'onesignalId' ,
134- createOperation . onesignalId ,
134+ createOperation . _onesignalId ,
135135 ModelChangeTags . HYDRATE ,
136136 ) ;
137137 }
@@ -142,8 +142,8 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
142142 ! backendSubscriptionId
143143 ? [
144144 new RefreshUserOperation (
145- createOperation . appId ,
146- createOperation . onesignalId ,
145+ createOperation . _appId ,
146+ createOperation . _onesignalId ,
147147 ) ,
148148 ]
149149 : undefined ,
@@ -178,7 +178,7 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
178178 if (
179179 status === 404 &&
180180 this . _newRecordState . _isInMissingRetryWindow (
181- createOperation . onesignalId ,
181+ createOperation . _onesignalId ,
182182 )
183183 ) {
184184 return new ExecutionResponse (
@@ -189,8 +189,8 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
189189
190190 const rebuildOps =
191191 await this . _buildUserService . getRebuildOperationsIfCurrentUser (
192- createOperation . appId ,
193- createOperation . onesignalId ,
192+ createOperation . _appId ,
193+ createOperation . _onesignalId ,
194194 ) ;
195195 if ( ! rebuildOps )
196196 return new ExecutionResponse ( ExecutionResult . FAIL_NORETRY ) ;
@@ -220,7 +220,7 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
220220 } ;
221221
222222 const response = await updateSubscriptionById (
223- { appId : lastOp . appId } ,
223+ { appId : lastOp . _appId } ,
224224 lastOp . subscriptionId ,
225225 subscription ,
226226 ) ;
@@ -241,7 +241,7 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
241241 case ResponseStatusType . MISSING :
242242 if (
243243 status === 404 &&
244- [ lastOp . onesignalId , lastOp . subscriptionId ] . some ( ( id ) =>
244+ [ lastOp . _onesignalId , lastOp . subscriptionId ] . some ( ( id ) =>
245245 this . _newRecordState . _isInMissingRetryWindow ( id ) ,
246246 )
247247 ) {
@@ -253,10 +253,10 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
253253
254254 return new ExecutionResponse ( ExecutionResult . FAIL_NORETRY , undefined , [
255255 new CreateSubscriptionOperation ( {
256- appId : lastOp . appId ,
256+ appId : lastOp . _appId ,
257257 enabled : lastOp . enabled ,
258258 notification_types : lastOp . notification_types ,
259- onesignalId : lastOp . onesignalId ,
259+ onesignalId : lastOp . _onesignalId ,
260260 subscriptionId : lastOp . subscriptionId ,
261261 token : lastOp . token ,
262262 type : lastOp . type ,
@@ -271,9 +271,9 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
271271 op : TransferSubscriptionOperation ,
272272 ) : Promise < ExecutionResponse > {
273273 const response = await transferSubscriptionById (
274- { appId : op . appId } ,
274+ { appId : op . _appId } ,
275275 op . subscriptionId ,
276- { onesignal_id : op . onesignalId } ,
276+ { onesignal_id : op . _onesignalId } ,
277277 false ,
278278 ) ;
279279
@@ -300,7 +300,7 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
300300 op : DeleteSubscriptionOperation ,
301301 ) : Promise < ExecutionResponse > {
302302 const response = await deleteSubscriptionById (
303- { appId : op . appId } ,
303+ { appId : op . _appId } ,
304304 op . subscriptionId ,
305305 ) ;
306306
@@ -318,7 +318,7 @@ export class SubscriptionOperationExecutor implements IOperationExecutor {
318318 switch ( type ) {
319319 case ResponseStatusType . MISSING :
320320 if (
321- [ op . onesignalId , op . subscriptionId ] . some ( ( id ) =>
321+ [ op . _onesignalId , op . subscriptionId ] . some ( ( id ) =>
322322 this . _newRecordState . _isInMissingRetryWindow ( id ) ,
323323 )
324324 ) {
0 commit comments