Merge branch 'main' of git@github.com:cdransf/coryd.dev.git

This commit is contained in:
Cory Dransfeldt 2023-10-30 11:07:35 -07:00
commit 63a9372c3a
7 changed files with 36 additions and 42 deletions

View file

@ -55,6 +55,7 @@ module.exports = async function () {
.map((book) => {
book.type = 'book'
if (!('dateAdded' in book)) book.dateAdded = new Date()
if (!('percentage' in book)) book.percentage = '0%'
return book
})
await asset.save(books, 'json')