updated table structure for photobooth/sparkbooth settings. now there's a separate table for it. update all references and tests. also fixed the notification panel and the lightbox in the guest app.

This commit is contained in:
Codex Agent
2025-12-18 08:49:56 +01:00
parent ece38fc009
commit 1c4acda332
30 changed files with 734 additions and 538 deletions

View File

@@ -35,14 +35,16 @@ class PhotoboothIngestService
public function ingest(Event $event, ?int $maxFiles = null, string $ingestSource = Photo::SOURCE_PHOTOBOOTH): array
{
$event->loadMissing('photoboothSetting');
$eventSetting = $event->photoboothSetting;
$tenant = $event->tenant;
if (! $tenant) {
if (! $tenant || ! $eventSetting) {
return ['processed' => 0, 'skipped' => 0];
}
$importDisk = config('photobooth.import.disk', 'photobooth');
$basePath = ltrim((string) $event->photobooth_path, '/');
$basePath = ltrim((string) $eventSetting->path, '/');
if (str_starts_with($basePath, 'photobooth/')) {
$basePath = substr($basePath, strlen('photobooth/'));
}
@@ -178,6 +180,9 @@ class PhotoboothIngestService
$destinationPath,
$thumbnailRelative,
$thumbnailToStore,
$watermarkedPath,
$watermarkedThumb,
$ingestSource,
$mimeType,
$size,
$filename,