Prettified Code!

This commit is contained in:
DJ2LS 2023-08-27 13:13:49 +00:00 committed by GitHub Action
parent e225e14c84
commit 8919e45967

View file

@ -1067,7 +1067,11 @@ update_chat = function (obj) {
}
// check if wrong status message
if (obj.status == "transmitting" && obj.type == "transmit" && obj.percent < 100) {
if (
obj.status == "transmitting" &&
obj.type == "transmit" &&
obj.percent < 100
) {
var TimeDifference = new Date().getTime() / 1000 - obj.timestamp;
if (TimeDifference > 21600) {
//Six hours
@ -2784,7 +2788,9 @@ function checkForWaitingMessages(dxcall) {
},
})
.then(function (result) {
console.log("Found " + result.docs.length + " messages waiting for " + dxcall)
console.log(
"Found " + result.docs.length + " messages waiting for " + dxcall,
);
// handle result
if (result.docs.length > 0) {
// only want to process the first available item object, then return