Merge branch 'master' of bitbucket.org:jubilian/fcsc_ipi_backend

This commit is contained in:
Gowtham M 2026-02-03 11:16:11 +05:30
commit 9edfaa5ca5
2 changed files with 3 additions and 5 deletions

View File

@ -728,7 +728,7 @@ exports.getSubmissionHistory = async (req, res) => {
return res.status(200).json({ status:"success", data: finalData });
} catch (err) {
console.log(err);
logger.error(err.message);
logger.error(`Stack trace: ${err.stack}`);
res.status(500).send({ status: "failed", message: "Internal server error" });
@ -1012,9 +1012,7 @@ exports.getBeforePreviousData = async (req, res) => {
const quarter = `Q${beforePrevQuarterNum}`;
const year = String(targetYear);
console.log(quarter);
console.log('-');
console.log(year);
// find submission id

View File

@ -27,7 +27,7 @@ const authJWT = (req, res, next) => {
.json({ status: "failed", message: "Access denied, token missing" });
}
console.log('token ='+token)
jwt.verify(token, process.env.JWT_SECRET, (err, decoded) => {
if (err) return res.status(401).json({ message: "Invalid or expired token" });