mirror of
https://github.com/sasjs/server.git
synced 2025-12-12 03:54:34 +00:00
fix: lint + remove default settings
This commit is contained in:
@@ -17,13 +17,11 @@ export const configureExpressSession = (app: Express) => {
|
|||||||
// See: https://www.npmjs.com/package/connect-mongo#set-the-compatibility-mode
|
// See: https://www.npmjs.com/package/connect-mongo#set-the-compatibility-mode
|
||||||
store = MongoStore.create({
|
store = MongoStore.create({
|
||||||
client: mongoose.connection!.getClient() as any,
|
client: mongoose.connection!.getClient() as any,
|
||||||
collectionName: 'sessions',
|
|
||||||
autoRemove: 'interval'
|
autoRemove: 'interval'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
store = MongoStore.create({
|
store = MongoStore.create({
|
||||||
client: mongoose.connection!.getClient() as any,
|
client: mongoose.connection!.getClient() as any
|
||||||
collectionName: 'sessions'
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user