Fix getNotes from db
This commit is contained in:
parent
8d5fc5c20e
commit
eb0c7b1c39
@ -79,7 +79,7 @@ const getNotes = async (opts) => {
|
||||
opts.publishedOnly = 'publishedOnly' in opts ? opts.publishedOnly : true
|
||||
|
||||
return db._.reverse(db.get('posts')
|
||||
.filter({ type: 'blog', published: opts.publishedOnly })
|
||||
.filter({ type: 'note', published: opts.publishedOnly })
|
||||
.sortBy('date')
|
||||
.value())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user