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

This commit is contained in:
Cory Dransfeldt 2023-10-30 10:40:29 -07:00
commit a995a0029e

View file

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