]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6501 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 22 Nov 2023 14:53:18 +0000 (15:53 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 22 Nov 2023 14:53:18 +0000 (15:53 +0100)
app/Fluidbook/Packager/Packager.php

index 304807549beb21b7620edb22499656d120a0bb39..1d16377fc5a56a139e9e7e580fb96672f8e13ed2 100644 (file)
@@ -113,11 +113,12 @@ class Packager extends \App\Jobs\Base
         $this->_clean = (null === $vdir);
 
         $this->book_id = $book_id;
+        $this->book = FluidbookPublication::find($book_id);
 
         $this->vdir = $vdir;
         $this->dir = Files::mkdir($this->packager_path('/' . $book_id));
 
-        $this->book = FluidbookPublication::find($book_id);
+
         $forceCompile = false;
         if (count($options)) {
             $options['forceCompileOnDownload'] = true;