Skip to content

Commit

Permalink
#106: temp debug commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Nov 4, 2022
1 parent 3022ebd commit cd1982b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/metadataTypes/Folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ class Folder extends MetadataType {
let result;
// since deployableMetadata will be modified for deploy, make a copy for reference
const beforeMetadata = JSON.parse(JSON.stringify(deployableMetadata));
console.log('folder.upsert', deployableMetadata);
if (existingId) {
// if an existing folder exists with the same name/path then use that
deployableMetadata.ID = existingId;
Expand Down Expand Up @@ -332,6 +333,8 @@ class Folder extends MetadataType {
}
const path = metadataEntry.Path;
try {
console.log('folder.create', metadataEntry);

const response = await super.createSOAP(metadataEntry, 'DataFolder', true);
if (response) {
response.Results[0].Object = metadataEntry;
Expand Down Expand Up @@ -364,6 +367,7 @@ class Folder extends MetadataType {
static async update(metadataEntry) {
const path = metadataEntry.Path;
try {
console.log('folder.update', metadataEntry);
const response = await super.updateSOAP(metadataEntry, 'DataFolder', true);
if (response) {
response.Results[0].Object = metadataEntry;
Expand Down
2 changes: 2 additions & 0 deletions lib/metadataTypes/MetadataType.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ class MetadataType {
metadataEntry,
null
);
console.log('folder.create > createSOAP', response);

if (!handleOutside) {
Util.logger.info(
Expand Down Expand Up @@ -683,6 +684,7 @@ class MetadataType {
metadataEntry,
null
);
console.log('folder.update > updateSOAP', response);
if (!handleOutside) {
Util.logger.info(
` - updated ${this.definition.type}: ${
Expand Down

0 comments on commit cd1982b

Please sign in to comment.