@riocrypto/common 1.0.1520 → 1.0.1521

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.
@@ -1036,10 +1036,9 @@ class RioAdminClient {
1036
1036
  }
1037
1037
  createWebhookRegistration({ userId, brokerId, type, url, }) {
1038
1038
  return __awaiter(this, void 0, void 0, function* () {
1039
- const { data } = yield this.axios.post("/api/webhooks", {
1039
+ const { data } = yield this.axios.post(`/api/webhooks/${type}`, {
1040
1040
  userId,
1041
1041
  brokerId,
1042
- type,
1043
1042
  url,
1044
1043
  });
1045
1044
  return data;
@@ -812,10 +812,9 @@ class RioClient {
812
812
  }
813
813
  createWebhookRegistration({ userId, brokerId, type, url, }) {
814
814
  return __awaiter(this, void 0, void 0, function* () {
815
- const { data } = yield this.axios.post("/api/webhooks", {
815
+ const { data } = yield this.axios.post(`/api/webhooks/${type}`, {
816
816
  userId,
817
817
  brokerId,
818
- type,
819
818
  url,
820
819
  });
821
820
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1520",
3
+ "version": "1.0.1521",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",