added a help system, replaced the words "tenant" and "Pwa" with better alternatives. corrected and implemented cron jobs. prepared going live on a coolify-powered system.

This commit is contained in:
Codex Agent
2025-11-10 16:23:09 +01:00
parent ba9e64dfcb
commit 447a90a742
123 changed files with 6398 additions and 153 deletions

View File

@@ -34,9 +34,14 @@ export function usePollGalleryDelta(token: string) {
const json = await res.json();
// Handle different response formats
const newPhotos = Array.isArray(json.data) ? json.data :
const rawPhotos = Array.isArray(json.data) ? json.data :
Array.isArray(json) ? json :
json.photos || [];
const newPhotos = rawPhotos.map((photo: any) => ({
...photo,
session_id: photo?.session_id ?? photo?.guest_name ?? null,
}));
if (newPhotos.length > 0) {
const added = newPhotos.length;