Merge pull request #3 from watho/fix_error_on_delete_attachment

Fix error on delete attachment
This commit is contained in:
akkuman authored and GitHub committed 2024-02-21 16:34:21 +08:00
commit 69c9a2be62
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -41022,7 +41022,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
await client.repository.repoDeleteReleaseAttachment({ await client.repository.repoDeleteReleaseAttachment({
owner: owner, owner: owner,
repo: repo, repo: repo,
id: id, id: release_id,
attachmentId: attachment.id, attachmentId: attachment.id,
}) })
console.log(`Successfully deleted old release attachment ${attachment.name}`) console.log(`Successfully deleted old release attachment ${attachment.name}`)
+1 -1
View File
@@ -135,7 +135,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
await client.repository.repoDeleteReleaseAttachment({ await client.repository.repoDeleteReleaseAttachment({
owner: owner, owner: owner,
repo: repo, repo: repo,
id: id, id: release_id,
attachmentId: attachment.id, attachmentId: attachment.id,
}) })
console.log(`Successfully deleted old release attachment ${attachment.name}`) console.log(`Successfully deleted old release attachment ${attachment.name}`)