From 1c5424611c6706ce296f8f6f75df30b7da5d93d8 Mon Sep 17 00:00:00 2001 From: Alberto Spelta Date: Fri, 23 Feb 2024 12:23:06 +0100 Subject: [PATCH] Revert "Update DaxModelVersion before exporting obfuscated model (#9)" This reverts commit 115a7bfc0a66fed9f094a63b000ae6eeb2787236. --- src/Dax.Vpax.Obfuscator/VpaxObfuscator.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Dax.Vpax.Obfuscator/VpaxObfuscator.cs b/src/Dax.Vpax.Obfuscator/VpaxObfuscator.cs index ec7f60a..b53b2e9 100644 --- a/src/Dax.Vpax.Obfuscator/VpaxObfuscator.cs +++ b/src/Dax.Vpax.Obfuscator/VpaxObfuscator.cs @@ -33,10 +33,7 @@ private static ObfuscationDictionary ObfuscateImpl(Stream stream, ObfuscationDic var texts = obfuscator.Texts.Select((t) => new ObfuscationText(t.Value, t.ObfuscatedValue)).ToArray(); var result = new ObfuscationDictionary(id: model.ObfuscatorDictionaryId, texts); - // Update DaxModelVersion to the current version before exporting the obfuscated model. - model.DaxModelVersion = Metadata.Model.CurrentDaxModelVersion; - - VpaxTools.ExportVpax(stream, model, viewVpa: null, database: null); + VpaxTools.ExportVpax(stream, model, viewVpa: null, database: null); return result; }