mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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;
|
filePath: string;
|
||||||
version: string;
|
version: string;
|
||||||
upgradeExisting: boolean;
|
upgradeExisting: boolean;
|
||||||
potentialDataLoss: boolean;
|
potentialDataLoss?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ export class DataTierApplicationWizard {
|
|||||||
additionalMeasurements.totalDurationMs = (new Date().getTime() - deployStartTime);
|
additionalMeasurements.totalDurationMs = (new Date().getTime() - deployStartTime);
|
||||||
additionalMeasurements.deployDacpacFileSizeBytes = await utils.tryGetFileSize(this.model.filePath);
|
additionalMeasurements.deployDacpacFileSizeBytes = await utils.tryGetFileSize(this.model.filePath);
|
||||||
additionalProps.upgradeExistingDatabase = this.model.upgradeExisting.toString();
|
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);
|
this.sendDacFxOperationTelemetryEvent(result, TelemetryAction.DeployDacpac, additionalProps, additionalMeasurements);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user