Fix shit
This commit is contained in:
parent
0752221b85
commit
1a49ebbc08
2
index.js
2
index.js
|
|
@ -570,6 +570,7 @@ xmpp.on("stanza", (stanza) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
if (process.env.LOG_EVENTS === "true") {
|
||||||
fs.writeFileSync(logPath, JSON.stringify({
|
fs.writeFileSync(logPath, JSON.stringify({
|
||||||
evt, stanza, product_id, product_id_raw, bodyData, body, sentData: {
|
evt, stanza, product_id, product_id_raw, bodyData, body, sentData: {
|
||||||
"type": "iem-message",
|
"type": "iem-message",
|
||||||
|
|
@ -590,6 +591,7 @@ xmpp.on("stanza", (stanza) => {
|
||||||
}
|
}
|
||||||
}, getCircularReplacer(), 2), 'utf8');
|
}, getCircularReplacer(), 2), 'utf8');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
tryGetText();
|
tryGetText();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue