Skip to content

Commit

Permalink
Revert "Update DaxModelVersion before exporting obfuscated model (#9)"
Browse files Browse the repository at this point in the history
This reverts commit 115a7bf.
  • Loading branch information
albertospelta authored Feb 23, 2024
1 parent 115a7bf commit 1c54246
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Dax.Vpax.Obfuscator/VpaxObfuscator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1c54246

Please sign in to comment.