Skip to content

Commit

Permalink
Fixed the wrong function name (#1420)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-xia authored and stevengum committed Nov 22, 2019
1 parent 7e01e9b commit 8a5674d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/botbuilder/src/inspectionMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export class InspectionMiddleware extends InterceptionMiddleware {
private async processAttachCommand(turnContext: TurnContext, sessionId: string): Promise<any> {
var sessions = await this.inspectionStateAccessor.get(turnContext, InspectionSessionsByStatus.DefaultValue);

if (this.attachComamnd(turnContext.activity.conversation.id, sessions, sessionId)) {
if (this.attachCommand(turnContext.activity.conversation.id, sessions, sessionId)) {
await turnContext.sendActivity('Attached to session, all traffic is being replicated for inspection.');
}
else {
Expand All @@ -306,7 +306,7 @@ export class InspectionMiddleware extends InterceptionMiddleware {
return sessionId;
}

private attachComamnd(conversationId: string, sessions: InspectionSessionsByStatus, sessionId: string): boolean {
private attachCommand(conversationId: string, sessions: InspectionSessionsByStatus, sessionId: string): boolean {

var inspectionSessionState = sessions.openedSessions[sessionId];
if (inspectionSessionState !== undefined) {
Expand Down

0 comments on commit 8a5674d

Please sign in to comment.