fix `onMonitorSave` event

+prettify config cron error
merge-requests/63/head
Moe 2019-02-22 19:24:21 -08:00
parent 127da9700d
commit e129afd756
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ module.exports = function(s){
if(config.cron.key === 'change_this_to_something_very_random__just_anything_other_than_this'){
console.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
console.error('!! Change your cron key in your conf.json. !!')
console.error('!! If you\'re running Shinobi remotely you should do this now. !!')
console.error(`!! If you're running Shinobi remotely you should do this now. !!`)
console.error('!! You can do this in the Super User panel or from terminal. !!')
console.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
}

View File

@ -1463,7 +1463,7 @@ module.exports = function(s,config,lang){
s.tx(txData,'GRP_'+form.ke)
callback(!endData.ok,endData)
s.onMonitorSaveExtensions.forEach(function(extender){
extender(Object.assign(s.group[e.ke].mon_conf[e.id],{}),e,endData)
extender(Object.assign(s.group[form.ke].mon_conf[form.mid],{}),form,endData)
})
})
}