From f6b3ef8321dc9308258e734f47934b18e060ceb8 Mon Sep 17 00:00:00 2001 From: watho Date: Thu, 15 Feb 2024 12:15:47 +0100 Subject: [PATCH 1/2] fix wrong var name --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index f817c2d..b5723ca 100644 --- a/main.js +++ b/main.js @@ -109,7 +109,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { await client.repository.repoDeleteReleaseAttachment({ owner: owner, repo: repo, - id: id, + id: release_id, attachmentId: attachment.id, }) console.log(`Successfully deleted old release attachment ${attachment.name}`) From 91415bf0a8b7f9a89d9eb8a2aba4b0b32280fa74 Mon Sep 17 00:00:00 2001 From: Thomas Wagner Date: Thu, 15 Feb 2024 14:36:47 +0100 Subject: [PATCH 2/2] build new dist --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index e06df36..6d4b2a8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -40996,7 +40996,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { await client.repository.repoDeleteReleaseAttachment({ owner: owner, repo: repo, - id: id, + id: release_id, attachmentId: attachment.id, }) console.log(`Successfully deleted old release attachment ${attachment.name}`)