Bug Description
The backend server crashes on startup with a syntax error.
Error
SyntaxError: Unexpected token '}'
at routers/adminRoutes.js:21
Root Cause
In backend/routers/adminRoutes.js, the import for getActivityLogsController is missing its opening const { declaration:
// Current (broken):
const {
getAdminPaymentsController,
} = require("../controllers/paymentRecordsController");
getActivityLogsController,
} = require("../controllers/activityLogController");
getActivityLogsController is left dangling without a matching const {, causing a syntax error that crashes the whole server on startup.
Proposed Fix
const {
getAdminPaymentsController,
} = require("../controllers/paymentRecordsController");
const {
getActivityLogsController,
} = require("../controllers/activityLogController");
This fixes the syntax error and lets the server start cleanly. Happy to open a PR for this if assigned.
Bug Description
The backend server crashes on startup with a syntax error.
Error
SyntaxError: Unexpected token '}'
at routers/adminRoutes.js:21
Root Cause
In
backend/routers/adminRoutes.js, the import forgetActivityLogsControlleris missing its openingconst {declaration:getActivityLogsControlleris left dangling without a matchingconst {, causing a syntax error that crashes the whole server on startup.Proposed Fix
This fixes the syntax error and lets the server start cleanly. Happy to open a PR for this if assigned.