mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
e225e14c84
commit
8919e45967
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue