1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-11 19:44:35 +00:00

fix: lint + remove default settings

This commit is contained in:
munja
2023-02-28 21:01:39 +00:00
parent 941988cd7c
commit 3de59ac4f8

View File

@@ -17,13 +17,11 @@ export const configureExpressSession = (app: Express) => {
// See: https://www.npmjs.com/package/connect-mongo#set-the-compatibility-mode
store = MongoStore.create({
client: mongoose.connection!.getClient() as any,
collectionName: 'sessions',
autoRemove: 'interval'
})
} else {
store = MongoStore.create({
client: mongoose.connection!.getClient() as any,
collectionName: 'sessions'
client: mongoose.connection!.getClient() as any
})
}
}