From 4ad7e092d9cff65df8a327c5d8f5a00b5253240a Mon Sep 17 00:00:00 2001 From: Beppe Catanese Date: Mon, 6 Nov 2023 16:35:09 +0100 Subject: [PATCH] Use collection.uid --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8dd69bb..87ba624 100644 --- a/index.js +++ b/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