fix: remove event type

This commit is contained in:
Sérgio Salgado 2022-01-20 15:26:26 +00:00
parent b98d73cd6e
commit df4dd5ccb8
4 changed files with 4 additions and 22 deletions

View file

@ -77,7 +77,7 @@ function saveConfig (config) {
const newConfig = _.assign(currentConfig, config)
return db.tx(t => {
return t.none(configSql, ['config', { config: newConfig }, true, NEW_SETTINGS_LOADER_SCHEMA_VERSION])
.then(() => t.none('NOTIFY $1:name, $2', ['reload', JSON.stringify({ type: 'reload', schema: asyncLocalStorage.getStore().get('schema'), operatorId })]))
.then(() => t.none('NOTIFY $1:name, $2', ['reload', JSON.stringify({ schema: asyncLocalStorage.getStore().get('schema'), operatorId })]))
}).catch(console.error)
})
}