Skip to content

Commit

Permalink
Merge pull request #234 from saiteja-madha/River198-dashboard
Browse files Browse the repository at this point in the history
Fix connection
  • Loading branch information
Sai Teja Madha authored Nov 12, 2022
2 parents c9ef12c + a0ab3cb commit f047de2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dashboard/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ module.exports.launch = async (client) => {
session({
secret: process.env.SESSION_PASSWORD,
cookie: { maxAge: new Date(Date.now() + 12096e5) },
name: "AIO_connection_cookie",
name: "Connection",
resave: true,
saveUninitialized: false,
store: MongoStore.create({
mongoUrl: process.env.MONGO_CONNECTION,
}),
})
) // Set the express session password and configuration
name: "connection",})) // Set the express session password and configuration
.use(async function (req, res, next) {
req.user = req.session.user;
req.client = client;
Expand Down

0 comments on commit f047de2

Please sign in to comment.