Add new daemon start script and update localization for director salary

- Introduced a new script `start-daemon` in `package.json` for running the daemon server.
- Added translations for "director payed out" in both English and German localization files to enhance user notifications.
This commit is contained in:
Torsten Schulz (local)
2025-12-01 10:06:06 +01:00
parent d19feb8bc1
commit 17d4d21620
5 changed files with 109 additions and 5 deletions

View File

@@ -378,16 +378,19 @@ export async function createTriggers() {
tp.election_id,
tp.tp_office_type_id,
tp.tp_election_date,
(
SELECT json_agg(vr)
FROM votes vr
WHERE vr.election_id = tp.election_id
COALESCE(
(
SELECT json_agg(vr)
FROM votes vr
WHERE vr.election_id = tp.election_id
),
'[]'::json -- oder '{}'::json, wenn dir ein Objekt lieber ist
),
NOW() AS created_at,
NOW() AS updated_at
FROM to_process tp
),
-- 10) Cleanup: Stimmen, Kandidaten und Wahlen löschen
_del_votes AS (
DELETE FROM falukant_data.vote