req.flash
doesn't support to do validation check via mongoose
const Post = new keystone.List('Post', {
map: { name: 'title' }, // <- what this map use for?
autokey: { path: 'slug', from: 'title', unique: true },
})
Hi all, its been a while since I've done anything with Keystone and am wanting to update an old 0.3 version app to the latest. I'm having some issues with the new File
storage adapters... previously in my models I had:
Sermon.add({
...
audio: { type: Types.S3File, collapse: true, allowedTypes:['application/mp4', 'application/mp3'] }
which I have moved over to the File adapter, but it is the pre
hook I can't seem to find, nor reference to them being deprecated
Sermon.fields.audio.pre('upload', function(item, file, next) {
now gives me:
TypeError: Sermon.fields.audio.pre is not a function
'ssl': true
'port': 3000,
'admin path': 'admin',
'ssl cert': '/etc/letsencrypt/live/domain.com/fullchain.pem',
'ssl key': '/etc/letsencrypt/live/domain.com/privkey.pem',
'letsencrypt': (process.env.NODE_ENV === 'production') && {
email: 'user@gmail.com',
domains: ['www.domain.com', 'domain.com'],
register: true,
tos: true,
},
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.