Remove debug logging from unhashRequest middleware, TimeEntryService, and StatusBox component to clean up code and improve performance. This update enhances readability and maintains functionality without unnecessary console outputs.
This commit is contained in:
@@ -16,9 +16,7 @@ const unhashRequestIds = (req, res, next) => {
|
||||
|
||||
// Route-Parameter verarbeiten
|
||||
if (req.params && typeof req.params === 'object') {
|
||||
console.log('DEBUG unhashRequest: req.params before =', req.params);
|
||||
req.params = unhashRequestData(req.params);
|
||||
console.log('DEBUG unhashRequest: req.params after =', req.params);
|
||||
}
|
||||
|
||||
next();
|
||||
|
||||
@@ -472,8 +472,6 @@ class TimeEntryService {
|
||||
const newOpenM = openMinutes % 60;
|
||||
const newOpenS = openS;
|
||||
|
||||
console.log(`🔍 DEBUG Offen-Berechnung: Original=${open}, Fehlende Pausen=${missingBreakMinutes}min, Neu=${newOpenH}:${newOpenM.toString().padStart(2, '0')}:${newOpenS.toString().padStart(2, '0')}`);
|
||||
|
||||
open = `${newOpenH.toString().padStart(2, '0')}:${newOpenM.toString().padStart(2, '0')}:${newOpenS.toString().padStart(2, '0')}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user