From b390c5a5c684fe3d5d997c11b105166b15d531c0 Mon Sep 17 00:00:00 2001 From: Pauline Ribeyre <4224001+paulineribeyre@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:45:06 -0500 Subject: [PATCH] clean up --- services/apis/sheepdog/sheepdogTasks.js | 3 --- utils/nodes.js | 3 --- 2 files changed, 6 deletions(-) diff --git a/services/apis/sheepdog/sheepdogTasks.js b/services/apis/sheepdog/sheepdogTasks.js index 757776d19..f5e9f55a1 100644 --- a/services/apis/sheepdog/sheepdogTasks.js +++ b/services/apis/sheepdog/sheepdogTasks.js @@ -150,10 +150,7 @@ module.exports = { */ async addNodes(nodesList, accessTokenHeader = user.mainAcct.accessTokenHeader) { // add nodes, in sorted key ascending order - console.log('sheepdogTasks.addNodes nodesList BEFORE sort: ', nodesList); - console.log('sheepdogTasks.addNodes nodesList AFTER sort:', nodes.sortNodes(nodesList)); for (const node of nodes.sortNodes(nodesList)) { - console.log('sheepdogTasks.addNodes submitting node: ', node.data.type); await this.addNode(node, accessTokenHeader); } }, diff --git a/utils/nodes.js b/utils/nodes.js index 5a2d68cb0..ce989a9df 100644 --- a/utils/nodes.js +++ b/utils/nodes.js @@ -118,14 +118,12 @@ const cloneNodes = function (originalNodes) { * @returns {{path: Node[], file: Node}} - Path up to the node, and file node itself */ const getPathWithFileNode = function (allNodes) { - // console.log(`allNodes --> ${JSON.stringify(allNodes)}`) const allNodesClone = cloneNodes(allNodes); const fileNodeName = Object.keys(allNodesClone).findLast( (nodeName) => allNodesClone[nodeName].category.includes('_file'), ); const file = allNodesClone[fileNodeName].clone(); delete allNodesClone[fileNodeName]; - // console.log(`allNodesClone --> ${JSON.stringify(allNodesClone)}`) return { path: allNodesClone, file, @@ -205,7 +203,6 @@ module.exports = { }); }); }, - async getNodeFromURL(dataUrl) { const fileContents = await module.exports.downloadFile(dataUrl);