Notes stream - Fixed - returning only public notes

This commit is contained in:
Sagi Dayan 2016-07-02 19:08:27 +03:00
parent 9da2dbde1d
commit 12da6f3c3e

View file

@ -172,7 +172,8 @@ router.post('/stream', (req, res) => {
} }
}, "filter is optional"); }, "filter is optional");
} else { } else {
var query = db.createQuery('Note'); var query = db.createQuery('Note')
.filter('is_public', true);
db.runQuery(query, (err, entities) => { db.runQuery(query, (err, entities) => {
if (!entities) { if (!entities) {