Skip to content

Commit

Permalink
fixed dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-ellis-sp committed Dec 9, 2024
1 parent 5ba300c commit d4015e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 77 deletions.
6 changes: 5 additions & 1 deletion postman-script/update-by-folder-ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,19 @@ async function getCollections() {
throw new Error("Postman API threw an error");
}
console.log(upload);

let newLink = 'https://god.gw.postman.com/run-collection/' + upload.collection.uid + '?action=collection%2Ffork&collection-url=entityId%3D' + upload.collection.uid + '%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0'

await insertOrUpdateItem({ id: args[2] + 'CollectionUrl', Item: newLink })

for (let collection of response.collections) {
if (collection.name.toLowerCase().includes(args[2].toLowerCase())) {
console.log(collection);
const response = await deleteCollection(collection.uid);
console.log(response);
}
}
await insertOrUpdateItem({ id: args[2] + 'CollectionUrl', Item: newLink })


console.log(newLink)
} catch (error) {
Expand Down
76 changes: 0 additions & 76 deletions postman-script/update-by-folder-ts/postmanAPI.ts

This file was deleted.

0 comments on commit d4015e8

Please sign in to comment.