fix: handle ts error

This commit is contained in:
Karishma Shukla
2025-04-28 01:01:58 +05:30
committed by GitHub
parent 1e3e1599f8
commit 2ec59add6e

View File

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