Merge pull request #563 from getmaxun/session-fix

feat: prune pg session interval
This commit is contained in:
Karishma Shukla
2025-05-06 16:53:15 +05:30
committed by GitHub

View File

@@ -45,6 +45,11 @@ app.use(
pool: pool,
tableName: 'session',
createTableIfMissing: true,
pruneSessionInterval: 60 * 60,
errorLog: (err: any) => {
logger.log('error', `Session store error: ${err}`);
},
} as any),
}),
secret: 'mx-session',
resave: false, // Do not resave the session if it hasn't changed