mirror of
https://github.com/jlengrand/push-adyen-collections-to-postman-javascript-action.git
synced 2026-03-10 08:41:23 +00:00
Use collection.uid
This commit is contained in:
4
index.js
4
index.js
@@ -58,8 +58,8 @@ export async function runParameters(postmanApiKey, workspaceId, pathToProcess){
|
||||
|
||||
// We have a match and with a higher version, in which case we have to update the collection
|
||||
if(collectionVersion){
|
||||
console.log(`Updating collection ${collectionVersion.name} with ${api.name}`);
|
||||
await postman.updateCollection(api.filepath, collectionVersion.id, postmanApiKey)
|
||||
console.log(`Updating collection ${collectionVersion.name} id ${collectionVersion.uid} with ${api.name}`);
|
||||
await postman.updateCollection(api.filepath, collectionVersion.uid, postmanApiKey)
|
||||
|
||||
}
|
||||
// Or no match at all, in which case we should create a new collection
|
||||
|
||||
Reference in New Issue
Block a user