if user
li: a(href='/keystone') Admin UI
li: a(href='/keystone/signout') Sign Out
else
li: a(href='/keystone/signin') Sign In
found 10 vulnerabilities (5 low, 5 moderate) in 6529 scanned packages
10 vulnerabilities require manual review. See the full report for details.
`var q = keystone
.list('Service')
.paginate({
page: req.query.page || 1,
perPage: 2,
maxPages: 5,
})
.where('state', 'published')
.sort('-publishedDate')
.populate('author cateservice');
if (locals.data.categories !== null && locals.data.categories._id) {
q.where('cateservice').in([locals.data.categories._id]);
}`
I try to paging but look, Keystone query all post without condition from model
author
is a relationship inside Messages
model, which should be, of course, the author of the message, or who sent it.)