Implement creator studio and upload updates
This commit is contained in:
@@ -25,13 +25,26 @@ final class GenerateDerivativesJob implements ShouldQueue
|
||||
private readonly string $sessionId,
|
||||
private readonly string $hash,
|
||||
private readonly int $artworkId,
|
||||
private readonly ?string $originalFileName = null
|
||||
private readonly ?string $originalFileName = null,
|
||||
private readonly ?string $archiveSessionId = null,
|
||||
private readonly ?string $archiveHash = null,
|
||||
private readonly ?string $archiveOriginalFileName = null,
|
||||
private readonly array $additionalScreenshotSessions = []
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(UploadPipelineService $pipeline): void
|
||||
{
|
||||
$pipeline->processAndPublish($this->sessionId, $this->hash, $this->artworkId, $this->originalFileName);
|
||||
$pipeline->processAndPublish(
|
||||
$this->sessionId,
|
||||
$this->hash,
|
||||
$this->artworkId,
|
||||
$this->originalFileName,
|
||||
$this->archiveSessionId,
|
||||
$this->archiveHash,
|
||||
$this->archiveOriginalFileName,
|
||||
$this->additionalScreenshotSessions
|
||||
);
|
||||
|
||||
// Auto-tagging is async and must never block publish.
|
||||
AutoTagArtworkJob::dispatch($this->artworkId, $this->hash)->afterCommit();
|
||||
|
||||
Reference in New Issue
Block a user