Skip to content

Commit

Permalink
Fixed file param bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed May 21, 2021
1 parent 1953e82 commit 80bdde1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/examples/functions/create-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;

let promise = functions.createTag('[FUNCTION_ID]', '[COMMAND]', '');
let promise = functions.createTag('[FUNCTION_ID]', '[COMMAND]', fs.createReadStream(__dirname + '/file.png')));

promise.then(function (response) {
console.log(response);
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;

let promise = storage.createFile('');
let promise = storage.createFile(fs.createReadStream(__dirname + '/file.png')));

promise.then(function (response) {
console.log(response);
Expand Down
2 changes: 1 addition & 1 deletion lib/services/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class Functions extends Service {
*
* @param string functionId
* @param string command
* @param string code
* @param File code
* @throws Exception
* @return {}
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/services/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Storage extends Service {
* assigned to read and write access unless he has passed custom values for
* read and write arguments.
*
* @param string file
* @param File file
* @param string[] read
* @param string[] write
* @throws Exception
Expand Down

0 comments on commit 80bdde1

Please sign in to comment.