hollaex-node-lib 2.15.2 → 2.15.3
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/example/hollaex.js +5 -5
- package/kit.js +2 -2
- package/package.json +1 -1
package/example/hollaex.js
CHANGED
|
@@ -22,12 +22,12 @@ client
|
|
|
22
22
|
symbols : xht-usdt
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
client.connect(['orderbook']);
|
|
25
|
+
// client.connect(['orderbook']);
|
|
26
26
|
|
|
27
|
-
client.ws.on('message', (data) => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
27
|
+
// client.ws.on('message', (data) => {
|
|
28
|
+
// data = JSON.parse(data);
|
|
29
|
+
// console.log(data);
|
|
30
|
+
// });
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
package/kit.js
CHANGED
|
@@ -2179,13 +2179,13 @@ class HollaExKit {
|
|
|
2179
2179
|
* @param {object} data - The content of the mail
|
|
2180
2180
|
* @return {object} A JSON object with message
|
|
2181
2181
|
*/
|
|
2182
|
-
sendExchangeUserEmail(userId, mailType,
|
|
2182
|
+
sendExchangeUserEmail(userId, mailType, content) {
|
|
2183
2183
|
const verb = 'POST';
|
|
2184
2184
|
let path = `${this.baseUrl}/admin/send-email`;
|
|
2185
2185
|
const data = {
|
|
2186
2186
|
user_id: userId,
|
|
2187
2187
|
mail_type: mailType,
|
|
2188
|
-
data
|
|
2188
|
+
data: content
|
|
2189
2189
|
};
|
|
2190
2190
|
|
|
2191
2191
|
const headers = generateHeaders(
|