@stackfactor/client-api 1.1.126 → 1.1.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/skill.js +3 -2
- package/package.json +1 -1
package/lib/skill.js
CHANGED
|
@@ -130,12 +130,13 @@ const getImportedSkillTemplates = (token) => {
|
|
|
130
130
|
* Get the skill related roles
|
|
131
131
|
* @param {String} id
|
|
132
132
|
* @param {String} token
|
|
133
|
+
* @param {Boolean} includeRoleInformation
|
|
133
134
|
* @returns {Promise}
|
|
134
135
|
*/
|
|
135
|
-
const getSkillRelatedRoles = (id, token) => {
|
|
136
|
+
const getSkillRelatedRoles = (id, token, includeRoleInformation = false) => {
|
|
136
137
|
return new Promise(function (resolve, reject) {
|
|
137
138
|
let confirmationRequest = client.get(
|
|
138
|
-
`api/v1/skills/getskillrelatedroles/${id}`,
|
|
139
|
+
`api/v1/skills/getskillrelatedroles/${id}/${includeRoleInformation}`,
|
|
139
140
|
{
|
|
140
141
|
headers: { authorization: token },
|
|
141
142
|
}
|