update function get index serial number

This commit is contained in:
joseph le 2023-08-28 08:16:01 +07:00
parent 112c26cd0d
commit acd05f64a8
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 = [];