Skip to content

Commit

Permalink
Fixed api call
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarlow26 committed Sep 30, 2021
1 parent 6c0e637 commit c69d6f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ function run() {
}
const attachAsset = (client, url, filename) => __awaiter(void 0, void 0, void 0, function* () {
const contentLength = fs.statSync(filename).size;
yield client.repos.uploadReleaseAsset({
yield client.rest.repos.uploadReleaseAsset({
url,
file: fs.createReadStream(filename),
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function run() {

const attachAsset = async (client, url: string, filename: string) => {
const contentLength = fs.statSync(filename).size
await client.repos.uploadReleaseAsset({
await client.rest.repos.uploadReleaseAsset({
url,
file: fs.createReadStream(filename),
headers: {
Expand Down

0 comments on commit c69d6f0

Please sign in to comment.