Merge pull request #3 from watho/fix_error_on_delete_attachment
Fix error on delete attachment
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -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}`)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								main.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.js
									
									
									
									
									
								
							@@ -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}`)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user