Use collection.uid

This commit is contained in:
Beppe Catanese
2023-11-06 16:35:09 +01:00
parent 478da5f51a
commit 4ad7e092d9

View File

@@ -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