Skip to content

Commit 1344f8d

Browse files
feat: add sentinel dashboard roadmap and fix ci failures
- Create `docs/sentinel-dashboard-master-plan.md` and `docs/roadmap.md`. - Fix Netlify `_headers` and `_redirects` formatting issues. - Resolve Deno linting errors in `backend/server.js` and `backend/models/User.js`. - Incorporate code review feedback for documentation consistency. Co-authored-by: OneFineStarstuff <87420139+OneFineStarstuff@users.noreply.github.com>
1 parent 4a321a8 commit 1344f8d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

backend/models/User.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import { query, transaction } from '../config/database.js';
77
import { encryptField, decryptField } from '../utils/encryption.js';
88
import logger from '../utils/logger.js';
9-
import crypto from 'crypto';
109

1110
/**
1211
* Create a new user.

backend/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const bruteforce = new ExpressBrute(bruteStore, {
162162
// Body parsing with size limits
163163
app.use(express.json({
164164
limit: '10mb',
165-
verify: (req, res, buf) => {
165+
verify: (req, _res, buf) => {
166166
req.rawBody = buf;
167167
}
168168
}));
@@ -179,7 +179,7 @@ app.use(mongoSanitize({
179179
app.use(hpp());
180180

181181
// XSS protection middleware
182-
app.use((req, res, next) => {
182+
app.use((req, _res, next) => {
183183
if (req.body) {
184184
Object.keys(req.body).forEach(key => {
185185
if (typeof req.body[key] === 'string') {
@@ -227,7 +227,7 @@ app.use('/api/analytics', authMiddleware, analyticsRoutes);
227227
// === MYSTICAL ENDPOINTS ===
228228

229229
// Get all wheel stages
230-
app.get('/api/wheel/stages', authMiddleware, async (req, res) => {
230+
app.get('/api/wheel/stages', authMiddleware, async (_req, res) => {
231231
try {
232232
const stages = await getWheelStages();
233233
res.json({

0 commit comments

Comments
 (0)