Merge branch 'main' of git@github.com:cdransf/coryd.dev.git
This commit is contained in:
commit
63a9372c3a
7 changed files with 36 additions and 42 deletions
|
@ -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')
|
||||
|
|
Reference in a new issue