Update .gitignore to exclude Android/Gradle files and enhance TimeEntryController and TimefixService for better error handling and performance. Refactor frontend components to use AppBrand for consistent branding across views.

This commit is contained in:
Torsten Schulz (local)
2026-05-14 22:17:29 +02:00
parent 7d5c8cffc7
commit 5b6adab4cd
72 changed files with 5704 additions and 111 deletions

View File

@@ -11,7 +11,8 @@ class TimeEntryController {
*/
async getAllEntries(req, res) {
try {
const entries = timeEntryService.getAllEntries();
const userId = req.user?.userId;
const entries = await timeEntryService.getAllEntries(userId);
res.json(entries);
} catch (error) {
console.error('Fehler beim Abrufen der Einträge:', error);
@@ -119,7 +120,7 @@ class TimeEntryController {
async deleteEntry(req, res) {
try {
const { id } = req.params;
timeEntryService.deleteEntry(id);
await timeEntryService.deleteEntry(id);
res.status(204).send();
} catch (error) {
@@ -262,4 +263,3 @@ class TimeEntryController {
// Singleton-Instanz exportieren
module.exports = new TimeEntryController();