From cc4780840c3f176c2e31bbaacaffa6ef9a9a8542 Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Sun, 5 Sep 2021 21:49:37 -0700 Subject: [PATCH] Fixing an expression typo for azure mfa in import extension (#17002) * Fixing if expression for azure mfa in import * updating import package number --- extensions/import/package.json | 2 +- extensions/import/src/wizard/pages/summaryPage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/import/package.json b/extensions/import/package.json index a23652cb37..e28c57d765 100644 --- a/extensions/import/package.json +++ b/extensions/import/package.json @@ -2,7 +2,7 @@ "name": "import", "displayName": "SQL Server Import", "description": "SQL Server Import for Azure Data Studio supports importing CSV or JSON files into SQL Server.", - "version": "1.4.0", + "version": "1.4.1", "publisher": "Microsoft", "preview": true, "engines": { diff --git a/extensions/import/src/wizard/pages/summaryPage.ts b/extensions/import/src/wizard/pages/summaryPage.ts index 506a06e25a..ac121362b9 100644 --- a/extensions/import/src/wizard/pages/summaryPage.ts +++ b/extensions/import/src/wizard/pages/summaryPage.ts @@ -135,7 +135,7 @@ export class SummaryPage extends ImportPage { const connectionString = await azdata.connection.getConnectionString(currentServer.connectionId, includePasswordInConnectionString); let accessToken = undefined; - if (currentServer.options.authenticationType = 'AzureMFA') { + if (currentServer.options.authenticationType === 'AzureMFA') { const azureAccount = (await azdata.accounts.getAllAccounts()).filter(v => v.key.accountId === currentServer.options.azureAccount)[0]; accessToken = (await azdata.accounts.getAccountSecurityToken(azureAccount, currentServer.options.azureTenantId, azdata.AzureResource.Sql)).token; }