chatbot-nc 1.0.76 → 1.0.77

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.
@@ -29,7 +29,7 @@ class UrlService {
29
29
  };
30
30
  let postURL = `${apiUrl}urlshortener`;
31
31
  let response = yield axios_1.default.post(postURL, requestBody, { "headers": reqHeaders });
32
- if (response && response.status === 200) {
32
+ if (response && response.status === 201) {
33
33
  shortURL = response.data.shortUrlCode;
34
34
  }
35
35
  return shortURL;
@@ -24,7 +24,7 @@ export default class UrlService {
24
24
  };
25
25
  let postURL = `${apiUrl}urlshortener`;
26
26
  let response = yield axios.post(postURL, requestBody, { "headers": reqHeaders });
27
- if (response && response.status === 200) {
27
+ if (response && response.status === 201) {
28
28
  shortURL = response.data.shortUrlCode;
29
29
  }
30
30
  return shortURL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatbot-nc",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",