Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Aug 23, 2024
1 parent 32642a1 commit b390c5a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions services/apis/sheepdog/sheepdogTasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down
3 changes: 0 additions & 3 deletions utils/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -205,7 +203,6 @@ module.exports = {
});
});
},


async getNodeFromURL(dataUrl) {
const fileContents = await module.exports.downloadFile(dataUrl);
Expand Down

0 comments on commit b390c5a

Please sign in to comment.