Skip to content

Commit

Permalink
Merge pull request #1416 from Accenture/bug/1410-creating-subfolders-…
Browse files Browse the repository at this point in the history
…on-multiple-levels-for-journey-folders-fails-on-the-2nd-level

Bug/1410: fix creation of nested journey/automation/journey-triggeredSend folders
  • Loading branch information
JoernBerkefeld authored Jul 4, 2024
2 parents 6d08940 + 0c142bf commit 04f2af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/metadataTypes/Folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class Folder extends MetadataType {
const response = await super.createREST(restPayload, '/email/v1/category', true);
if (response?.objectId) {
// convert the response to the same format as the SOAP response
metadataEntry.ID = response.objectId;
metadataEntry.ID = response.categoryId;
// the following is a bit of a hack to make the response look like the SOAP response; not sure if we actually need that anywhere like this --> future developers feel free to double check
const returnObject = {
Results: [
Expand Down

0 comments on commit 04f2af5

Please sign in to comment.