diff --git a/server/util.js b/server/util.js index 66ae6a4..00e395a 100644 --- a/server/util.js +++ b/server/util.js @@ -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()) }