Refactor API Parameter Handling and Update Email Transport

 Updated API Route Parameters:
- Changed parameter type from `{ id: string }` to `Promise<{ id: string }>` in PUT and DELETE methods for better async handling.

 Fixed Email Transport Creation:
- Updated `nodemailer.createTransporter` to `nodemailer.createTransport` for correct transport configuration.

 Refactored AnalyticsDashboard Component:
- Changed export from default to named export for better modularity.

 Enhanced Email Responder Toast:
- Updated toast structure to include additional properties for better user feedback.

🎯 Overall Improvements:
- Improved async handling in API routes.
- Ensured correct usage of nodemailer.
- Enhanced component exports and user notifications.
This commit is contained in:
2025-09-08 08:31:16 +02:00
parent 85de6f0ef5
commit 1fa9216789
6 changed files with 23 additions and 71 deletions

View File

@@ -289,4 +289,5 @@ export const ToastProvider = ({ children }: { children: React.ReactNode }) => {
);
};
export { ToastItem as Toast };
export default ToastItem;