Skip to content

Commit

Permalink
chore: only assign store value to session when database type is mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome committed Feb 22, 2024
1 parent c3bb9ba commit de1a54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const start = async () => {
app.set('trust proxy', 1);
app.use(
session({
store: db.getSessionStore(session),
store: config.getDatabase().type === 'mongo' ? db.getSessionStore(session) : null,
secret: config.getCookieSecret(),
resave: false,
saveUninitialized: false,
Expand Down

0 comments on commit de1a54d

Please sign in to comment.