mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fix undefined error in dacpac extension when sending telemetry (#21727)
* fix undefined error in dacpac extension when sending telemetry * update interface
This commit is contained in:
@@ -16,5 +16,5 @@ export interface DacFxDataModel {
|
||||
filePath: string;
|
||||
version: string;
|
||||
upgradeExisting: boolean;
|
||||
potentialDataLoss: boolean;
|
||||
potentialDataLoss?: boolean;
|
||||
}
|
||||
|
||||
@@ -335,7 +335,7 @@ export class DataTierApplicationWizard {
|
||||
additionalMeasurements.totalDurationMs = (new Date().getTime() - deployStartTime);
|
||||
additionalMeasurements.deployDacpacFileSizeBytes = await utils.tryGetFileSize(this.model.filePath);
|
||||
additionalProps.upgradeExistingDatabase = this.model.upgradeExisting.toString();
|
||||
additionalProps.potentialDataLoss = this.model.potentialDataLoss.toString();
|
||||
additionalProps.potentialDataLoss = this.model.potentialDataLoss?.toString();
|
||||
|
||||
this.sendDacFxOperationTelemetryEvent(result, TelemetryAction.DeployDacpac, additionalProps, additionalMeasurements);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user