Skip to content

Commit

Permalink
fix: Don't clear the session by defaut on close
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Mar 4, 2023
1 parent 5528a60 commit 9c402a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/sessionController.js
Expand Up @@ -155,7 +155,7 @@ export async function startSession(req, res) {

export async function closeSession(req, res) {
const session = req.session;
const { clearSession = true } = req.body;
const { clearSession = false } = req.body;
try {
if (clientsArray[session].status === null) {
return await res.status(200).json({ status: true, message: 'Session successfully closed' });
Expand Down

0 comments on commit 9c402a4

Please sign in to comment.