sfmc-devtools icon indicating copy to clipboard operation
sfmc-devtools copied to clipboard

[BUG] if file types of assets change the previous code extract is not deleted

Open JoernBerkefeld opened this issue 3 months ago • 0 comments

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

JoernBerkefeld avatar Mar 14 '24 10:03 JoernBerkefeld