change runtimeCheckLog
This commit is contained in:
		
							parent
							
								
									6d04a73c35
								
							
						
					
					
						commit
						5550b21bf8
					
				| 
						 | 
					@ -87,7 +87,7 @@ export async function runtimeCheckLogs(folderPath) {
 | 
				
			||||||
    // Watch for changes in the files listed
 | 
					    // Watch for changes in the files listed
 | 
				
			||||||
    async function watchFilesInList() {
 | 
					    async function watchFilesInList() {
 | 
				
			||||||
      //only check new file ---> fileList - fileList_old = new file
 | 
					      //only check new file ---> fileList - fileList_old = new file
 | 
				
			||||||
      let listFileWatch = fileList.slice(0, 40)?.filter((i) => fileList_old.includes(i) === false).map((file) => folderPath + "/" + file)
 | 
					      let listFileWatch = fileList?.filter((i) => fileList_old.includes(i) === false).map((file) => folderPath + "/" + file)
 | 
				
			||||||
      const watcher = chokidar.watch(
 | 
					      const watcher = chokidar.watch(
 | 
				
			||||||
        listFileWatch,
 | 
					        listFileWatch,
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue