function debugOverPush(before, after) { if (functions.config().app.debug === "1") { if (before !== null && after !== null) { const minutes = (after.at - before.at) / 60000.0; common.sendPush("State is changed " + before.state + " to " + after.state, "min(s): " + minutes); } } }