geschenkgutscheine implementiert ("Paket verschenken"). Neuer Upload-Provider: Sparkbooth.
This commit is contained in:
@@ -33,7 +33,7 @@ class PhotoboothIngestService
|
||||
$this->hasPathColumn = Schema::hasColumn('photos', 'path');
|
||||
}
|
||||
|
||||
public function ingest(Event $event, ?int $maxFiles = null): array
|
||||
public function ingest(Event $event, ?int $maxFiles = null, string $ingestSource = Photo::SOURCE_PHOTOBOOTH): array
|
||||
{
|
||||
$tenant = $event->tenant;
|
||||
|
||||
@@ -90,7 +90,7 @@ class PhotoboothIngestService
|
||||
}
|
||||
|
||||
try {
|
||||
$result = $this->importFile($event, $eventPackage, $disk, $importDisk, $file);
|
||||
$result = $this->importFile($event, $eventPackage, $disk, $importDisk, $file, $ingestSource);
|
||||
if ($result) {
|
||||
$processed++;
|
||||
Storage::disk($importDisk)->delete($file);
|
||||
@@ -116,6 +116,7 @@ class PhotoboothIngestService
|
||||
string $destinationDisk,
|
||||
string $importDisk,
|
||||
string $file,
|
||||
string $ingestSource,
|
||||
): bool {
|
||||
$stream = Storage::disk($importDisk)->readStream($file);
|
||||
|
||||
@@ -191,8 +192,8 @@ class PhotoboothIngestService
|
||||
'file_path' => $watermarkedPath,
|
||||
'thumbnail_path' => $watermarkedThumb,
|
||||
'status' => 'pending',
|
||||
'guest_name' => Photo::SOURCE_PHOTOBOOTH,
|
||||
'ingest_source' => Photo::SOURCE_PHOTOBOOTH,
|
||||
'guest_name' => $ingestSource,
|
||||
'ingest_source' => $ingestSource,
|
||||
'ip_address' => null,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user