Skip to content

Commit c894c53

Browse files
authored
fix: doc & variable name (#620)
1 parent 5c22872 commit c894c53

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/cloudfunction.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = function(AV) {
1919
/**
2020
* Makes a call to a cloud function.
2121
* @param {String} name The function name.
22-
* @param {Object} data The parameters to send to the cloud function.
23-
* @param {AuthOptions} options
22+
* @param {Object} [data] The parameters to send to the cloud function.
23+
* @param {AuthOptions} [options]
2424
* @return {Promise} A promise that will be resolved with the result
2525
* of the function.
2626
*/
@@ -40,8 +40,8 @@ module.exports = function(AV) {
4040
* Makes a call to a cloud function, you can send {AV.Object} as param or a field of param; the response
4141
* from server will also be parsed as an {AV.Object}, array of {AV.Object}, or object includes {AV.Object}
4242
* @param {String} name The function name.
43-
* @param {Object} data The parameters to send to the cloud function.
44-
* @param {AuthOptions} options
43+
* @param {Object} [data] The parameters to send to the cloud function.
44+
* @param {AuthOptions} [options]
4545
* @return {Promise} A promise that will be resolved with the result of the function.
4646
*/
4747
rpc(name, data, options) {
@@ -105,7 +105,7 @@ module.exports = function(AV) {
105105
/**
106106
* Makes a call to verify sms code that sent by AV.Cloud.requestSmsCode
107107
* @param {String} code The sms code sent by AV.Cloud.requestSmsCode
108-
* @param {phone} phone The mobile phoner number(optional).
108+
* @param {phone} phone The mobile phoner number.
109109
* @return {Promise} A promise that will be resolved with the result
110110
* of the function.
111111
*/

src/push.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ module.exports = function(AV) {
4343
data.expiration_time = data.expiration_time.toJSON();
4444
}
4545

46-
if (data.expiration_time && data.expiration_time_interval) {
46+
if (data.expiration_time && data.expiration_interval) {
4747
throw new Error(
48-
"Both expiration_time and expiration_time_interval can't be set"
48+
"Both expiration_time and expiration_interval can't be set"
4949
);
5050
}
5151

0 commit comments

Comments
 (0)