update interval watch file && update config database

This commit is contained in:
joseph le 2023-09-04 14:00:19 +07:00
parent fbac5c2f05
commit 3fae2b6bb9
2 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export async function runtimeCheckLogs(folderPath) {
const filePath = `${folderPath}/${fileName}`;
const scan = fs.watchFile(
filePath,
{ interval: 120000 },
{ interval: 300000 },
async (eventType) => {
//check special item, extra RAM, error in log
let lines = [];

View File

@ -42,6 +42,8 @@ const databaseConfig: DatabaseConfig = {
password: Env.get('MYSQL_PASSWORD', ''),
database: Env.get('MYSQL_DB_NAME'),
},
pool: {min:1, max:200},
acquireConnectionTimeout: 10000,
migrations: {
naturalSort: true,
},