Skip to content

Commit 80bdde1

Browse files
committed
Fixed file param bug
1 parent 1953e82 commit 80bdde1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/examples/functions/create-tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ client
1212
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1313
;
1414

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

1717
promise.then(function (response) {
1818
console.log(response);

docs/examples/storage/create-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ client
1212
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1313
;
1414

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

1717
promise.then(function (response) {
1818
console.log(response);

lib/services/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class Functions extends Service {
273273
*
274274
* @param string functionId
275275
* @param string command
276-
* @param string code
276+
* @param File code
277277
* @throws Exception
278278
* @return {}
279279
*/

lib/services/storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Storage extends Service {
3737
* assigned to read and write access unless he has passed custom values for
3838
* read and write arguments.
3939
*
40-
* @param string file
40+
* @param File file
4141
* @param string[] read
4242
* @param string[] write
4343
* @throws Exception

0 commit comments

Comments
 (0)