change runtimechecklog

This commit is contained in:
joseph le 2023-08-22 10:03:27 +07:00
parent 49c68822dd
commit 7263d4eee8
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export function runtimeCheckLogs(folderPath) {
folderWatcher.on("add", async (filePath) => {
console.log(`New file added: ${filePath}`);
//import log new file
await LogDetectFile.firstOrCreate({file_name:filePath.split("\\")[filePath.split("\\").length -1]},{file_name:filePath.split("\\")[filePath.split("\\").length -1]})
await LogDetectFile.firstOrCreate({file_name:filePath.split("/")[filePath.split("/").length -1]},{file_name:filePath.split("/")[filePath.split("/").length -1]})
// updateFile;
fileList_old = fileList;
updateFileList();