@andrey4emk/npm-app-back-b24 0.3.7 → 0.4.1
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/b24.js +1 -0
- package/chatApp.js +2 -2
- package/package.json +1 -1
package/b24.js
CHANGED
|
@@ -67,6 +67,7 @@ export async function refresh(AuthB24Model) {
|
|
|
67
67
|
domain: newToken.domain,
|
|
68
68
|
expires_in: newToken.expires,
|
|
69
69
|
member_id: newToken.member_id,
|
|
70
|
+
name: `${newToken.domain}_${APP_ENV}`,
|
|
70
71
|
});
|
|
71
72
|
return { error: false, message: "Токены битрикс24 успешно обновлены." };
|
|
72
73
|
} catch (error) {
|
package/chatApp.js
CHANGED
|
@@ -160,9 +160,9 @@ class ChatApp {
|
|
|
160
160
|
});
|
|
161
161
|
let data = await res.json();
|
|
162
162
|
if (!data.success) {
|
|
163
|
-
return { error: true, message: `Ошибка при отправке сообщения в ChatApp через ${messangerType}`, data:
|
|
163
|
+
return { error: true, message: `Ошибка при отправке сообщения в ChatApp через ${messangerType}`, data: data };
|
|
164
164
|
} else {
|
|
165
|
-
return { error: false, message: `Сообщение успешно отправлено в ChatApp через ${messangerType}`, data:
|
|
165
|
+
return { error: false, message: `Сообщение успешно отправлено в ChatApp через ${messangerType}`, data: data };
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|