Skip to content

Commit

Permalink
refactor(INJI-434): update the method name
Browse files Browse the repository at this point in the history
Signed-off-by: Alka <[email protected]>
  • Loading branch information
Alka1703 committed Nov 6, 2023
1 parent a601104 commit e57972e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions machines/bleShare/request/requestMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export const requestMachine =
actions: [
'setSenderInfo',
'setReceiverInfo',
'sendVcSharingStartEvent',
'sendVCReceivingStartEvent',
],
},

Expand All @@ -274,7 +274,7 @@ export const requestMachine =
on: {
CANCEL: {
target: '#request.cancelling',
actions: ['sendVCSharingTerminatedEvent'],
actions: ['sendVCReceivingTerminatedEvent'],
},
},
after: {
Expand All @@ -289,15 +289,15 @@ export const requestMachine =
on: {
CANCEL: {
target: '#request.cancelling',
actions: 'sendVCShareFlowTimeoutEndEvent',
actions: 'sendVCReceiveFlowTimeoutEndEvent',
},
},
},
},
on: {
DISCONNECT: {
target: 'disconnected',
actions: ['sendVCSharingDisconnectedEvent'],
actions: ['sendVCReceivingDisconnectedEvent'],
},
VC_RECEIVED: {
target: 'reviewing.accepting',
Expand Down Expand Up @@ -325,7 +325,7 @@ export const requestMachine =
target: 'invalidIdentity',
actions: [
'setReceiveLogTypeUnverified',
'sendVcShareFailedEvent',
'sendVCReceiveFailedEvent',
],
},
CANCEL: {
Expand Down Expand Up @@ -420,7 +420,7 @@ export const requestMachine =
'sendVcReceived',
'setReceiveLogTypeRegular',
'logReceived',
'sendVcShareSuccessEvent',
'sendVCReceiveSuccessEvent',
],
invoke: {
src: 'sendVcResponse',
Expand Down Expand Up @@ -708,7 +708,7 @@ export const requestMachine =
}),
}),

sendVcSharingStartEvent: () => {
sendVCReceivingStartEvent: () => {
sendStartEvent(
getStartEventData(TelemetryConstants.FlowType.receiverVcShare),
);
Expand All @@ -720,7 +720,7 @@ export const requestMachine =
);
},

sendVCShareFlowTimeoutEndEvent: () => {
sendVCReceiveFlowTimeoutEndEvent: () => {
sendEndEvent(
getEndEventData(
TelemetryConstants.FlowType.receiverVcShare,
Expand All @@ -730,7 +730,7 @@ export const requestMachine =
);
},

sendVcShareSuccessEvent: () => {
sendVCReceiveSuccessEvent: () => {
sendImpressionEvent(
getImpressionEventData(
TelemetryConstants.FlowType.receiverVcShare,
Expand All @@ -745,7 +745,7 @@ export const requestMachine =
);
},

sendVcShareFailedEvent: () => {
sendVCReceiveFailedEvent: () => {
sendEndEvent(
getEndEventData(
TelemetryConstants.FlowType.receiverVcShare,
Expand Down Expand Up @@ -780,7 +780,7 @@ export const requestMachine =
);
},

sendVCSharingTerminatedEvent: () => {
sendVCReceivingTerminatedEvent: () => {
sendEndEvent(
getEndEventData(
TelemetryConstants.FlowType.receiverVcShare,
Expand All @@ -790,7 +790,7 @@ export const requestMachine =
);
},

sendVCSharingDisconnectedEvent: () => {
sendVCReceivingDisconnectedEvent: () => {
sendEndEvent(
getEndEventData(
TelemetryConstants.FlowType.receiverVcShare,
Expand Down

0 comments on commit e57972e

Please sign in to comment.