change runtimechecklog

This commit is contained in:
joseph le 2023-08-22 14:05:28 +07:00
parent 59668462d9
commit f1cb4627cf
1 changed files with 1 additions and 1 deletions

View File

@ -35,8 +35,8 @@ export function runtimeCheckLogs(folderPath) {
folderWatcher.on("add", async (filePath) => {
//import log new file
console.log(`New file added: ${filePath}`);
if (filePath.search("log.") === -1) {
console.log(`New file added: ${filePath}`);
await LogDetectFile.firstOrCreate(
{ file_name: filePath.split("/")[filePath.split("/").length - 1] },
{ file_name: filePath.split("/")[filePath.split("/").length - 1] }