Skip to content

Commit

Permalink
fix axios data transform in File class (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonlimlianjie authored Oct 17, 2019
1 parent 0744c1a commit 049bcf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/File.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class File {
}
})

return { sha: resp.content.sha }
return { sha: resp.data.content.sha }
} catch (err) {
throw err
}
Expand Down Expand Up @@ -115,7 +115,7 @@ class File {
}
})

return { newSha: resp.commit.sha }
return { newSha: resp.data.commit.sha }
} catch (err) {
throw err
}
Expand Down

0 comments on commit 049bcf6

Please sign in to comment.