Skip to content

Commit

Permalink
Fix path to media
Browse files Browse the repository at this point in the history
  • Loading branch information
bencmbrook committed Sep 26, 2020
1 parent 5ad9f3f commit 487e32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/src/scheduleAccessRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = async function scheduleAccessRequest(userIdentifier, nonce, req
});

// Upload a file to a datapoint
const readFile = fs.createReadStream(path.join(__dirname, '/big_buck_bunny.mp4'));
const readFile = fs.createReadStream(path.join(__dirname, 'media/big_buck_bunny.mp4'));
const fileUpload = got.stream.post('https://multi-tenant.sombra.transcend.io/v1/datapoint', {
headers: {
authorization: `Bearer ${TRANSCEND_API_KEY}`,
Expand Down

0 comments on commit 487e32d

Please sign in to comment.