@stackfactor/client-api 1.1.7 → 1.1.9

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.
@@ -84,12 +84,14 @@ export const discardLearningContentChanges = (id, token) => {
84
84
  * @param {String} microSkillId
85
85
  * @param {Object} learningActivity
86
86
  * @param {List<String>} sections
87
+ * @param {String} token
87
88
  */
88
89
  export const generateLearningActivityContent = (
89
90
  skillId,
90
91
  microSkillId,
91
92
  learningActivity,
92
- sections
93
+ sections,
94
+ token
93
95
  ) => {
94
96
  return new Promise(function (resolve, reject) {
95
97
  const data = {
@@ -97,7 +99,7 @@ export const generateLearningActivityContent = (
97
99
  microSkillId: microSkillId,
98
100
  sections: sections,
99
101
  };
100
- const request = client.get(
102
+ const request = client.post(
101
103
  `api/v1/learningcontent/generatelearningactivitycontent/${skillId}`,
102
104
  {
103
105
  headers: { authorization: token },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {