From 423590665c59d0832a31bfbd8474db2ef8d6ac45 Mon Sep 17 00:00:00 2001 From: orangain Date: Sat, 7 Mar 2020 00:18:04 +0900 Subject: [PATCH] Fix type of upsert and send_completion_email --- src/management/JobsManager.js | 4 ++-- src/management/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/management/JobsManager.js b/src/management/JobsManager.js index 5a9fc57d2..00cbbf8da 100644 --- a/src/management/JobsManager.js +++ b/src/management/JobsManager.js @@ -148,8 +148,8 @@ JobsManager.prototype.get = function(params, cb) { * @param {String} data.connection_id connection_id of the connection to which users will be imported. * @param {String} [data.users] Path to the users data file. Either users or users_json is mandatory. * @param {String} [data.users_json] JSON data for the users. - * @param {String} [data.upsert] Whether to update users if they already exist (true) or to ignore them (false). - * @param {String} [data.send_completion_email] Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). + * @param {Boolean} [data.upsert] Whether to update users if they already exist (true) or to ignore them (false). + * @param {Boolean} [data.send_completion_email] Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). * @param {Function} [cb] Callback function. * * @return {Promise|undefined} diff --git a/src/management/index.js b/src/management/index.js index fa0430f83..72bcc6a91 100644 --- a/src/management/index.js +++ b/src/management/index.js @@ -2037,8 +2037,8 @@ utils.wrapPropertyMethod(ManagementClient, 'getJob', 'jobs.get'); * @param {String} data.connection_id connection_id of the connection to which users will be imported. * @param {String} [data.users] Path to the users data file. Either users or users_json is mandatory. * @param {String} [data.users_json] JSON data for the users. - * @param {String} [data.upsert] Whether to update users if they already exist (true) or to ignore them (false). - * @param {String} [data.send_completion_email] Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). + * @param {Boolean} [data.upsert] Whether to update users if they already exist (true) or to ignore them (false). + * @param {Boolean} [data.send_completion_email] Whether to send a completion email to all tenant owners when the job is finished (true) or not (false). * @param {Function} [cb] Callback function. * * @return {Promise|undefined}