forked from LiteNet/freepbx-stats
Meow?
This commit is contained in:
parent
b8cc57b4fb
commit
25cf0254ec
2
index.js
2
index.js
|
@ -123,7 +123,7 @@ async function sendSummary() {
|
||||||
await records.toJSONFile(JSON_FILE);
|
await records.toJSONFile(JSON_FILE);
|
||||||
|
|
||||||
const yesterday = getYesterday();
|
const yesterday = getYesterday();
|
||||||
const makeField = (name, value) => ({ name, value: value.toString(), inline: false });
|
const makeField = (name, value) => ({ name, value: value === undefined ? "***ERR: UNDEFINED***" : value.toString(), inline: false });
|
||||||
|
|
||||||
let embed = {
|
let embed = {
|
||||||
title: `Summary from <t:${Math.floor(yesterday.start / 1000)}:f> to <t:${Math.floor(yesterday.end / 1000)}:f>`,
|
title: `Summary from <t:${Math.floor(yesterday.start / 1000)}:f> to <t:${Math.floor(yesterday.end / 1000)}:f>`,
|
||||||
|
|
Loading…
Reference in a new issue