Skip to content

Commit

Permalink
reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Latifa Al-Hitmi committed Oct 22, 2024
1 parent e3df59f commit 9175499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/admin/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ dashboardController.submitBugReport = async function (req, res) {

const sanitizedDescription = validator.escape(description);
const timestamp = Date.now();
const user = email ? email : 'Anonymous'; // Assuming req.user contains the user information
const user = req.user ? req.user.username : 'Anonymous'; // Assuming req.user contains the user information

// Add the bug report to the in-memory array
bugLogs.push({ user, description: sanitizedDescription, timestamp });
Expand Down

0 comments on commit 9175499

Please sign in to comment.