[fix] set default value for new settings on first run

This commit is contained in:
les 2019-10-22 23:54:26 +02:00
parent 802ec5cd8b
commit 7b8f6b69b4

View file

@ -56,9 +56,12 @@ module.exports = {
const settings = require('./api/controller/settings')
await settings.set('allow_registration', true)
await settings.set('allow_anon_event', true)
await settings.set('allow_recurrent_event', true)
await settings.set('allow_recurrent_event', false)
await settings.set('recurrent_event_visible', true)
await settings.set('enable_federation', false)
await settings.set('enable_comments', false)
await settings.set('disable_gamification', true)
await settings.set('instance_timezone', 'Europe/Rome')
// add default notification
consola.info('Add default notification')