update function get index serial number
This commit is contained in:
		
							parent
							
								
									112c26cd0d
								
							
						
					
					
						commit
						acd05f64a8
					
				| 
						 | 
					@ -8,7 +8,7 @@ export default class CheckToken {
 | 
				
			||||||
  public async handle(
 | 
					  public async handle(
 | 
				
			||||||
    { request, response }: HttpContextContract,
 | 
					    { request, response }: HttpContextContract,
 | 
				
			||||||
    next: () => Promise<void>
 | 
					    next: () => Promise<void>
 | 
				
			||||||
  ) {
 | 
					  ) { 
 | 
				
			||||||
    // code for middleware goes here. ABOVE THE NEXT CALL
 | 
					    // code for middleware goes here. ABOVE THE NEXT CALL
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
      // const user = jwtDecode(request.headers().authorization);
 | 
					      // const user = jwtDecode(request.headers().authorization);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,7 +72,7 @@ export async function runtimeCheckLogs(folderPath) {
 | 
				
			||||||
          const filePath = `${folderPath}/${fileName}`;
 | 
					          const filePath = `${folderPath}/${fileName}`;
 | 
				
			||||||
          const scan = fs.watchFile(
 | 
					          const scan = fs.watchFile(
 | 
				
			||||||
            filePath,
 | 
					            filePath,
 | 
				
			||||||
            { interval: 10000 },
 | 
					            { interval: 120000 },
 | 
				
			||||||
            async (eventType) => {
 | 
					            async (eventType) => {
 | 
				
			||||||
              //check special item, extra RAM, error in log
 | 
					              //check special item, extra RAM, error in log
 | 
				
			||||||
              let lines = [];
 | 
					              let lines = [];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue