Fix getNotes from db

This commit is contained in:
Yarmo Mackenbach 2020-10-02 15:43:19 +02:00
parent 8d5fc5c20e
commit eb0c7b1c39

View File

@ -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())
}