sfmc-devtools
sfmc-devtools copied to clipboard
[BUG] if file types of assets change the previous code extract is not deleted
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
i changed the code of an asset of type codesnippetblock
(asset/other) deployed it, then re-retrieved and noticed that what was previously recognized as thml (fallback) was now recognized as ampscript. unfortunately, I ended up with the ampscript file AND the old HTML file. Similar issues would likely happen if if the file type changes to ssjs.
Expected Behavior
during retrieval of one or multiple keys we should delete all related files first, instead of relying on overwrites.
Steps To Reproduce
No response
Version
6.0.2
Environment
- OS:
- Node:
- npm:
Participation
- [X] I am willing to submit a pull request for this issue.
Additional comments
No response