fix: install missing packages and fix TS errors
- Install @mui/x-data-grid in frontend (fixes AuditLog) - Install jose in backend (fixes authentik service) - Update .npmrc to use npm.apple.com proxy - Fix AuditLog localeText to use MUI DataGrid v7 API keys - Fix banner controller: cast req.params.id to string - Remove unused logger import in banner.service.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,7 +48,7 @@ class BannerController {
|
||||
|
||||
async delete(req: Request, res: Response): Promise<void> {
|
||||
try {
|
||||
const deleted = await bannerService.delete(req.params.id);
|
||||
const deleted = await bannerService.delete(req.params.id as string);
|
||||
if (!deleted) {
|
||||
res.status(404).json({ success: false, message: 'Banner not found' });
|
||||
return;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import pool from '../config/database';
|
||||
import logger from '../utils/logger';
|
||||
|
||||
export interface Banner {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user