From f584719d1ff2c2876852959f10cc5b926f7e959e Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 30 Oct 2023 09:34:44 -0700 Subject: [PATCH] fix: book progress --- src/_data/books.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_data/books.js b/src/_data/books.js index fee25e74..7ab951df 100644 --- a/src/_data/books.js +++ b/src/_data/books.js @@ -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')