Skip to content

Commit 7416502

Browse files
committed
Add missing attributes to API
1 parent a0c0d07 commit 7416502

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/helpers.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def to_json(book, url: :relative)
2626
'link': "#{url_prefix}#{book.path}",
2727
'rating': book[:rating] || 0,
2828
'read_date': read_date,
29+
'priority': book[:priority],
30+
'ongoing': book[:ongoing] || false,
2931
'favorite': book[:favorite] || false,
3032
'cover': "#{url_prefix}#{cover_path}" || '',
3133
'cover_mini': "#{url_prefix}#{cover_mini_path}" || '',

0 commit comments

Comments
 (0)