From eb0c7b1c396ba1ae31f95f922c3ca59cfe96d4ad Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 2 Oct 2020 15:43:19 +0200 Subject: [PATCH] Fix getNotes from db --- server/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }