Notes stream - Fixed - returning only public notes
This commit is contained in:
parent
9da2dbde1d
commit
12da6f3c3e
1 changed files with 2 additions and 1 deletions
|
@ -172,7 +172,8 @@ router.post('/stream', (req, res) => {
|
|||
}
|
||||
}, "filter is optional");
|
||||
} else {
|
||||
var query = db.createQuery('Note');
|
||||
var query = db.createQuery('Note')
|
||||
.filter('is_public', true);
|
||||
|
||||
db.runQuery(query, (err, entities) => {
|
||||
if (!entities) {
|
||||
|
|
Loading…
Reference in a new issue