Skip to content

Commit

Permalink
If the product-id of an epub is unknown use the document-id
Browse files Browse the repository at this point in the history
as the name of the resulting epub
  • Loading branch information
egli committed May 27, 2024
1 parent d2a5d2b commit 054dd59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/daisyproducer2/documents/preview.clj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
product-id (or (->
(db/get-products {:document_id document-id :type 2}) ;; type 2 => ebook
:identifier)
"unknown") ;; FIXME
document-id) ;; use the document-id as a fallback
target-dir (fs/path (env :spool-dir))]
(epub document-id product-id target-dir)))
([document-id name target-dir]
Expand Down

0 comments on commit 054dd59

Please sign in to comment.