feat: add admin settings for reminder hour and minutes, and update expiry warning handling in UI and translations

This commit is contained in:
Daniel Volz
2025-12-25 13:06:43 +01:00
parent 1468c62d59
commit 80268fb1f1
7 changed files with 52 additions and 21 deletions
+2
View File
@@ -142,6 +142,8 @@ export async function settingsRoutes(app: FastifyInstance) {
nextScheduledCheck: reminderState.nextScheduledCheck,
lastNotificationType: reminderState.lastNotificationType,
lastNotificationChannel: reminderState.lastNotificationChannel,
// Admin settings (from .env, read-only)
expiryWarningDays: parseInt(process.env.EXPIRY_WARNING_DAYS ?? "30", 10),
});
});