update send report

This commit is contained in:
joseph le 2023-09-04 15:58:58 +07:00
parent 2f2b858b87
commit deba81443b
1 changed files with 4 additions and 4 deletions

View File

@ -143,7 +143,7 @@ export async function runtimeCheckLogs(folderPath) {
let listReport = await getListLineByItem(logsDetect[0])
let content =
"| |Detected at | Line | Item/error | Content \n|---|:---:|:---:|:---:|:-----------:\n";
"| |Detected at | Item/error | Line | Report \n|---|:---:|:---:|:---:|:-----------:\n";
let spoiler = "";
// let file = await fs
// .readFileSync(filePath)
@ -204,13 +204,13 @@ export async function runtimeCheckLogs(folderPath) {
content =
content +
"|" +
index +
(index + 1) +
"|**" +
moment(Date.now()).format("HH:mm - DD/MM") +
"**|" +
log.line.sort((a, b) => a > b).join(", ") +
log.detected_content+
"|" +
log.detected_content +
log.line.sort((a, b) => a - b).join(", ") +
// "|" +
// file[log.line - 1] +
"|[View](https://logs.danielvu.com/api/log/showLog/" +