feat: add issue kanban/attachments/deadlines, dashboard widget DnD, and checklisten system

This commit is contained in:
Matthias Hochmeister
2026-03-28 15:19:41 +01:00
parent a1cda5be51
commit 0c2ea829aa
42 changed files with 4804 additions and 201 deletions

View File

@@ -137,6 +137,16 @@ class VehicleService {
? { titel: lehrgang.rows[0].titel, beginn: lehrgang.rows[0].beginn, ende: lehrgang.rows[0].ende }
: null;
// Fetch vehicle types via junction table
const typenResult = await pool.query(
`SELECT ft.* FROM fahrzeug_typen ft
JOIN fahrzeug_fahrzeug_typen fft ON fft.fahrzeug_typ_id = ft.id
WHERE fft.fahrzeug_id = $1
ORDER BY ft.name ASC`,
[id]
);
(vehicle as any).typen = typenResult.rows;
return vehicle;
} catch (error) {
logger.error('VehicleService.getVehicleById failed', { error, id });