@andrey4emk/npm-app-back-b24 0.6.7 → 0.6.8

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.7",
3
+ "version": "0.6.8",
4
4
  "description": "Bitrix24 OAuth helpers for Node.js projects",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -126,7 +126,7 @@ export class Wappi {
126
126
 
127
127
  body: JSON.stringify({
128
128
  recipient: phone,
129
- //! url: fileUrl,
129
+ // ! url: fileUrl,
130
130
  file_name: fileName,
131
131
  caption: message,
132
132
  base64: base64,
@@ -282,7 +282,7 @@ export class Wappi {
282
282
  const buffer = Buffer.from(arrayBuffer);
283
283
 
284
284
  const base64String = buffer.toString("base64");
285
- return { error: false, base64: base64String };
285
+ return { error: false, data: base64String };
286
286
  } catch (error) {
287
287
  return { error: true, message: `Ошибка при скачивании и конвертировании в base64 файла по fileUrl: ${error.message}` };
288
288
  }