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.)
at require (internal/module.js:11:18)
at Object.<anonymous> (/app/src/keystone.js:4:18)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
2019-12-24T13:48:47: PM2 log: App name:some-app id:0 disconnected
2019-12-24T13:48:47: PM2 log: App [some-app:0] exited with code [0] via signal [SIGINT]
2019-12-24T13:48:47: PM2 log: App [some-app:0] starting in -cluster mode-
2019-12-24T13:48:47: PM2 log: App [some-app:0] online
SyntaxError: Error parsing /app/node_modules/keystone/package.json: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at readPackage (module.js:126:52)
at tryPackage (module.js:136:13)
at Function.Module._findPath (module.js:218:20)
at Function.Module._resolveFilename (module.js:546:25)
at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:51:29)
at require (internal/module.js:11:18)
at Object.<anonymous> (/app/src/keystone.js:4:18)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
2019-12-24T13:48:47: PM2 log: App name:some-app id:0 disconnected
2019-12-24T13:48:47: PM2 log: App [some-app:0] exited with code [0] via signal [SIGINT]
2019-12-24T13:48:47: PM2 log: Script /app/src/keystone.js had too many unstable restarts (16). Stopped. “errored”
2019-12-24T13:48:50: PM2 log: 0 application online, retry = 3
2019-12-24T13:48:52: PM2 log: 0 application online, retry = 2
2019-12-24T13:48:54: PM2 log: 0 application online, retry = 1
2019-12-24T13:48:56: PM2 log: 0 application online, retry = 0
2019-12-24T13:48:56: PM2 log: [Watch] Stop watching some-app
2019-12-24T13:48:56: PM2 log: Stopping app:some-app id:0
2019-12-24T13:48:56: PM2 error: app=some-app id=0 does not have a pid
2019-12-24T13:48:56: PM2 log: PM2 successfully stopped