meta-horizonn 1.4.0 → 1.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/Main.js +1 -0
- package/package.json +1 -1
- package/src/listenMqtt.js +9 -4
- package/utils.js +0 -1
package/Main.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "meta-horizonn",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.1",
|
4
4
|
"description": "Facebook-Chat-API Protect and Deploy by Kanzu and HZI Team. Kem is redeveloped. Rename package is Meta Horizonn and package supported ChatBot Messenger.",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
package/src/listenMqtt.js
CHANGED
@@ -210,9 +210,9 @@ function listenMqtt(defaultFuncs, api, ctx, globalCallback) {
|
|
210
210
|
warningThreshold: 0.7,
|
211
211
|
releaseThreshold: 0.8,
|
212
212
|
maxThreshold: 0.9,
|
213
|
-
interval:
|
213
|
+
interval: 300 * 1000,
|
214
214
|
logLevel: 'warn',
|
215
|
-
logFile: path.join(process.cwd(), 'Horizon_Database'
|
215
|
+
logFile: path.join(process.cwd(), 'Horizon_Database', 'memory.log'),
|
216
216
|
smartReleaseEnabled: true,
|
217
217
|
allowLog: (global.Fca.Require.FastConfig.AntiStuckAndMemoryLeak.LogFile.Use || false)
|
218
218
|
};
|
@@ -509,8 +509,13 @@ function parseDelta(defaultFuncs, api, ctx, globalCallback, {
|
|
509
509
|
senderID: delta.deltaMessageReply.message.messageMetadata.actorFbId.toString(),
|
510
510
|
attachments: ( delta.deltaMessageReply.message.attachments || [] )
|
511
511
|
.map((att) => {
|
512
|
-
|
513
|
-
|
512
|
+
let mercury;
|
513
|
+
try {
|
514
|
+
const mercury = JSON.parse(att.mercuryJSON);
|
515
|
+
Object.assign(att, mercury);
|
516
|
+
} catch (ex) {
|
517
|
+
mercury = {};
|
518
|
+
}
|
514
519
|
return att;
|
515
520
|
})
|
516
521
|
.map((att) => {
|