Skip to content

Commit

Permalink
#2035: ensure pre-existing items are found by adding already cached a…
Browse files Browse the repository at this point in the history
…ssets to CBBK reference map
  • Loading branch information
JoernBerkefeld committed Feb 5, 2025
1 parent 4e39b36 commit a422fa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/metadataTypes/Asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ class Asset extends MetadataType {
static async upsert(metadataMap, deployDir) {
if (Object.keys(metadataMap).length > 1) {
// fill the cache map with our deployment package to ensure we can find
ReplaceCbReference.createCacheForMap(cache.getCache().asset);
ReplaceCbReference.createCacheForMap(metadataMap);
// assets can link to other assets (via template, content block reference and SSJS/AMPscript) and deployment would fail if we did not sort this here
metadataMap = await this._getUpsertOrder(metadataMap, deployDir);
Expand Down

0 comments on commit a422fa9

Please sign in to comment.