Refactor TimefixService to improve query handling and enhance error management in MainActivity. Update AndroidManifest to specify application class and increment Gradle version. Enhance BookingViewModel for better state management and loading indicators. Update UI components for improved user experience in booking screens.

This commit is contained in:
Torsten Schulz (local)
2026-05-14 22:51:48 +02:00
parent 5b6adab4cd
commit 333f90c792
11 changed files with 376 additions and 78 deletions

View File

@@ -33,15 +33,15 @@ class TimefixService {
});
// Hole auch die Timefixes für diese Einträge
const entryIds = entries.map(e => e.id);
const entryIds = entries.map(e => e.id).filter(Boolean);
if (entryIds.length === 0) {
return [];
}
const timefixesForEntries = await sequelize.query(
`SELECT worklog_id, fix_type, fix_date_time FROM timefix WHERE worklog_id IN (?)`,
`SELECT worklog_id, fix_type, fix_date_time FROM timefix WHERE worklog_id IN (:entryIds)`,
{
replacements: [entryIds],
replacements: { entryIds },
type: sequelize.QueryTypes.SELECT
}
);