@andrey4emk/npm-app-back-b24 0.6.1 → 0.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrey4emk/npm-app-back-b24",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Bitrix24 OAuth helpers for Node.js projects",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -218,7 +218,7 @@ export class Wappi {
218
218
 
219
219
  let token = this.telegaAuth.token;
220
220
  let profile_id = this.telegaAuth.profile_id;
221
- let url = `https://wappi.pro/tapi/sync/contact/add?profile_id=${profile_id}`;
221
+ let url = `https://wappi.pro/tapi/sync/contact/add`;
222
222
 
223
223
  try {
224
224
  let res = await fetch(url, {
@@ -226,6 +226,7 @@ export class Wappi {
226
226
  headers: {
227
227
  "Content-Type": "application/json",
228
228
  Authorization: token,
229
+ profile_id: profile_id,
229
230
  },
230
231
  body: JSON.stringify({
231
232
  phone: phone,