From 054dd598977794d476f7346df05d2b5e2f07fa17 Mon Sep 17 00:00:00 2001 From: Christian Egli Date: Mon, 27 May 2024 11:40:12 +0200 Subject: [PATCH] If the product-id of an epub is unknown use the document-id as the name of the resulting epub --- src/clj/daisyproducer2/documents/preview.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/daisyproducer2/documents/preview.clj b/src/clj/daisyproducer2/documents/preview.clj index 167592c..6700ee3 100644 --- a/src/clj/daisyproducer2/documents/preview.clj +++ b/src/clj/daisyproducer2/documents/preview.clj @@ -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]