@@ -7,7 +7,7 @@ import { getTimeZoneId } from 'src/shared/helpers/general';
77import {
88 getResponseStatusType ,
99 ResponseStatusType ,
10- } from 'src/shared/helpers/NetworkUtils ' ;
10+ } from 'src/shared/helpers/network ' ;
1111import Log from 'src/shared/libraries/Log' ;
1212import { checkAndTriggerUserChanged } from 'src/shared/listeners' ;
1313import { IdentityConstants , OPERATION_NAME } from '../constants' ;
@@ -80,22 +80,22 @@ export class LoginUserOperationExecutor implements IOperationExecutor {
8080 // When there is no existing user to attempt to associate with the externalId provided, we go right to
8181 // createUser. If there is no externalId provided this is an insert, if there is this will be an
8282 // "upsert with retrieval" as the user may already exist.
83- if ( ! loginUserOp . existingOnesignalId || ! loginUserOp . externalId ) {
83+ if ( ! loginUserOp . _existingOnesignalId || ! loginUserOp . _externalId ) {
8484 return this . _createUser ( loginUserOp , operations ) ;
8585 }
8686
8787 const result = await this . _identityOperationExecutor . _execute ( [
8888 new SetAliasOperation (
8989 loginUserOp . _appId ,
90- loginUserOp . existingOnesignalId ,
90+ loginUserOp . _existingOnesignalId ,
9191 IdentityConstants . _ExternalID ,
92- loginUserOp . externalId ,
92+ loginUserOp . _externalId ,
9393 ) ,
9494 ] ) ;
9595
9696 switch ( result . _result ) {
9797 case ExecutionResult . _Success : {
98- const backendOneSignalId = loginUserOp . existingOnesignalId ;
98+ const backendOneSignalId = loginUserOp . _existingOnesignalId ;
9999 const opOneSignalId = loginUserOp . _onesignalId ;
100100
101101 if ( this . _identityModelStore . _model . _onesignalId === opOneSignalId ) {
@@ -122,12 +122,12 @@ export class LoginUserOperationExecutor implements IOperationExecutor {
122122 }
123123
124124 case ExecutionResult . _FailConflict :
125- Log . _debug ( `Handling 409 for externalId: ${ loginUserOp . externalId } ` ) ;
125+ Log . _debug ( `Handling 409 for externalId: ${ loginUserOp . _externalId } ` ) ;
126126 return this . _createUser ( loginUserOp , operations ) ;
127127
128128 case ExecutionResult . _FailNoretry :
129129 Log . _error (
130- `Recovering from SetAlias failure for externalId: ${ loginUserOp . externalId } ` ,
130+ `Recovering from SetAlias failure for externalId: ${ loginUserOp . _externalId } ` ,
131131 ) ;
132132 return this . _createUser ( loginUserOp , operations ) ;
133133
@@ -147,8 +147,8 @@ export class LoginUserOperationExecutor implements IOperationExecutor {
147147 language : getLanguage ( ) ,
148148 } ;
149149
150- if ( createUserOperation . externalId ) {
151- identity [ IdentityConstants . _ExternalID ] = createUserOperation . externalId ;
150+ if ( createUserOperation . _externalId ) {
151+ identity [ IdentityConstants . _ExternalID ] = createUserOperation . _externalId ;
152152 }
153153
154154 for ( const operation of operations ) {
0 commit comments