change runtimechecklog
This commit is contained in:
parent
59668462d9
commit
f1cb4627cf
|
|
@ -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] }
|
||||
|
|
|
|||
Loading…
Reference in New Issue