ref: Improve Book instantiation
This commit is contained in:
@@ -90,7 +90,7 @@ impl From<&Book> for Entry {
|
||||
Entry{
|
||||
title: book.title.clone(),
|
||||
id: book.id.to_string().clone(),
|
||||
updated: book.updated.clone(),
|
||||
updated: book.updated.to_rfc3339(),
|
||||
author: book.author.clone().into_iter().map(|a| a.into()).collect(),
|
||||
language: (!book.language.is_empty()).then(|| book.language.clone()),
|
||||
issued: (!book.published_at.is_empty()).then(|| book.published_at.clone()),
|
||||
|
||||
Reference in New Issue
Block a user