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