Browse Source

Fix getNotes from db

main
Yarmo Mackenbach 3 weeks ago
parent
commit
eb0c7b1c39
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      server/util.js

+ 1
- 1
server/util.js 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())
}

Loading…
Cancel
Save