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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user