Skip to content

Commit

Permalink
do not disable zones plugin
Browse files Browse the repository at this point in the history
Don't want to silently disable it, because then users with
active configuration would lose their notifications.
  • Loading branch information
tkurki committed May 11, 2024
1 parent 038a5da commit cdcbf51
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/interfaces/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,18 +310,16 @@ module.exports = (theApp: any) => {
function startPlugins(app: any) {
app.plugins = []
app.pluginsMap = {}
modulesWithKeyword(app.config, 'signalk-node-server-plugin')
.filter(
(moduleData: any) => moduleData.metadata.name !== '@signalk/zones'
)
.forEach((moduleData: any) => {
modulesWithKeyword(app.config, 'signalk-node-server-plugin').forEach(
(moduleData: any) => {
registerPlugin(
app,
moduleData.module,
moduleData.metadata,
moduleData.location
)
})
}
)
}

function handleMessageWrapper(app: any, id: string) {
Expand Down

0 comments on commit cdcbf51

Please sign in to comment.